Calculate Force in C || Arithmetic operations || C programming
In this, we are going to see a program in which we will print Calculate Force in C Programming Language.

 

#include <stdio.h>
void main()
{
    float force, mass, acceleration;

    printf("*** Program to Calculate Force ****\n");

    printf("Enter the Mass of Object: ");
    scanf("%f", &mass);

    printf("Enter the Acceleration of Object: ");
    scanf("%f", &acceleration);

    force = mass * acceleration;

    printf("The Force of the object is : %.2f N", force);
}

#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post