Answer to Question #225410 in C for MENSAH PAUL OSEI

Question #225410
Newton's law states that the force, F, between two bodies of masses My and M₂ is given by:

F = k(m1m2)/d
1
Expert's answer
2021-08-12T02:33:29-0400
#include<stdio.h>
int main(){
	float first, second, distance;
	printf("Enter the mass of the first body\n");
	scanf("%f",&first);
	printf("Enter the mass of the second body\n");
	scanf("%f",&second);
	printf("Enter the distance between the two bodies\n");
	scanf("%f",&distance);
	float force = (6.67* 10 * second * first ) / distance;
	printf("The force is:  %f", force);
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS