Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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); }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote