C program of newton's second law of motion - 6 Players blogs for technology

give us your feedback

People Online

Breaking

ads

Post Top Ad

Friday, May 24, 2019

C program of newton's second law of motion

NETON'S 2nd OF MOTION  = FORCE
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

ads1

Post Top Ad