A) write a single c statment the do the following: 1) define two integr variable
ID: 3704958 • Letter: A
Question
A) write a single c statment the do the following:
1) define two integr variables x and y
2) display the message "enter two numbers"
3) obtain values for varibles x and y from the kayboard
4) test if the currnet value of varable y is greater than the current value of variable x
B) dfine a function that calculate the lengthe of hypotenuse of a right trinangle when the other two sides are given
Explanation / Answer
A) write a single c statment the do the following: 1) define two integr variables x and y int x, y; 2) display the message "enter two numbers" printf("enter two numbers"); 3) obtain values for varibles x and y from the kayboard scanf("%d %d", &x, &y); 4) test if the currnet value of varable y is greater than the current value of variable x if(y > x) { } B) dfine a function that calculate the lengthe of hypotenuse of a right trinangle when the other two sides are given double hypotenuse(double x, double y) { return sqrt(x*x + y*y); }
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.