Question: Write a program to perform the following: Write a C program to read inputs for m1, m2, G and r. Find value of F based

 Write a program to perform the following: Write a C program
to read inputs for m1, m2, G and r. Find value of

Write a program to perform the following: Write a C program to read inputs for m1, m2, G and r. Find value of F based on following condition: r value must be more than zero mm2 F=G p2 Note: Write your ID and name as comment Sample Output Sample Output Enter ml value 3 Enter m2 value 5 Enter G value 4 Enter r value -5 r value must be more than zero Enter ml value 4 Enter m2 value 5 Enter G value 3 Enter r value 4.3 Result is 13.953487 1 A 22 . Copy the below code, correct any eight errors and paste corrected progra #include stdio.h> int main() { float a, B.c, Avg Int total; printf("Enter three integer values "); scanf("%d %d %d", &a, &b, &c) total a+b+c avg = a+b+c/3 print("Average is %f" Avg); return 0; }

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!