Second equation of motion in C language

Before going into this, we'll use a library of math.h, for mathematic operations.

First, we'll take input the values of initial velocity, time and acceleration, and then store the inputs in the variables.


Then, we will apply a condition, because time can't be negative.

After that, we'll apply the formula to calculate distance.

Second equation of motion in the C language 


Related :


Comments

Popular posts from this blog

Pseudocode to Check, Number is Odd or Even

How to Create Marksheet in C