Computer Science, asked by saxena303lokesh, 1 year ago

Write an equivalent c++expression for the following expressions:ut+1/2ft²

Answers

Answered by Atulkrishnan
1
You can do this in two ways:
1.First,
            float u,t,f,a,D;
             a=t*t;
            D=ut+(1/2)fa;
2.In this way,
            float base=t;
            float a= pow(t,2);
             float u,f,D;
              D=ut+(1/2)fa;

THAT'S ALL....
REMEMBER TO USE THE HEADER FILE MATH.H OR CMATH(FOR DEV C++)...
HAPPY CODING
Similar questions