Question: Exercise #2: ----------- - Modify the scan.c example from my notes so that it reads in six double and six long values instead of a

Exercise #2: ----------- - Modify the scan.c example from my notes so that it reads in six double and six long values instead of a float and an int. Also, print out all twelve of the values, both before and after you have read/placed values into them. - Write a program to compute the volume of a cylinder. Make the result be a floating-point result. Choose integer or floating-point for the radius and height. Volume is pi times radius squared times height. Read in the radius and the height.Exercise #2: ----------- - Modify the scan.c example from my notes so

Ex: FILE: scan.c Illustration of scanf. #include int main( ) int x; float y; printf (''k-%d ", x) ; printf ("y %f ", y) ; printf ("Enter an integer value for x: "); scanf ("%d" , &x) ; printf ("Enter a floating-point value for y: "); scanf ("f", &y) printf ("x - d ", x); printf ("v-%f ", y) ; return 0; OUTPUT: scan.c x = 4206596 Y-0.000000 Enter an integer value for x: 7 Enter a floating-point value for y: 3.3 x=7 Y- 3.300000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!