Question: 2. Enter, save and compile the following program to be called ex 2.c #include /* enter your own name here/ EGN 3211 ex-2: integer, floating

 2. Enter, save and compile the following program to be called
ex 2.c #include /* enter your own name here/ EGN 3211 ex-2:

2. Enter, save and compile the following program to be called ex 2.c #include /* enter your own name here/ EGN 3211 ex-2: integer, floating point and mixed arithmetic / main() ( rt num1 = 7, num2 = 2, num 3-4. num; float d1 = 70, d2 = 2.0, d3 = 4.0, d; num1 d=d1/d2 pritf(B (default floating) 96f divided by %fis: %rn", d 1, d2, d). printf( (formatted floating) % 21f dvided by 96.2t is. % 1lfn. d1 d2 d. d = num 1 / d2. printf("D (mixed mode to float) %d divided by % 1 Itis % tinn", num 1, d2, d) num num1/d2 printf('E (maxed mode to integer) %d divided by % 1lfis %defin", num 1, d2, numi, num = num1 % num2 printrF (integer) %d mod %d %dn", num1, num2, num); num num3 % num2 printf("G (integer) %d mod %d = %dn" num3, num2, num). num: num3 % num1 , printfC"H (integer) %d mod %d : %dn" num3, num 1, num)

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!