FORCE =MASS * ACCELERATION
#include <stdio.h>
#include <stdlib.h>
int main()
{
int force,mass,acceleration;
printf("\n\t enter the mass of a body = ");
scanf("%d",&mass);
printf("\n\t enter the acceleration of a body = ");
scanf("%d",&acceleration);
force=mass*acceleration;
printf("\n\t the force acting on a bode = %d",force);
return 0;
}
the output
the mass of a body = 40
the acceleration = 120
then
the force acting of a body = 4800
No comments:
Post a Comment