C Program To Find The Value Of V, Where v^2 = u^2 + 2as

C Program To Find The Value Of V, Where v^2 = u^2 + 2as

Code
// Find the value of V where v^2 = u^2 + 2as

#include <stdio.h>
#include <math.h>
int main()
{
    float s, u, a;
    printf("Enter The Values Of s, u, a: ");
    scanf("%f%f%f", &s, &u, &a);
    printf("Value Of V Is: %.2f", sqrt((u * u) + (2 * a * s)));
    return 0;
}
Output
Enter The Values Of s, u, a: 4 5 6
Value Of V Is: 8.54

Post a Comment