-->

Solution6



// program to get ‘v’ using given formula v2=u2+2as
#include<stdio.h>
#include<conio.h>
#include<math.h> //for sqrt() and pow() function
void main()
{
float u,a,s;
float v;
printf(“enter  value of ‘u’\n”);
scanf(“%f”,&u);
printf(“please enter value of ‘s’\n”);
scanf(“%f”,&s);
printf(“please enter value of ‘a’\n”);
scanf(“%f”,&a);
v=sqrt(pow(u,2)+2*a*s);
printf(“the value of 'v'=%f\n”,v);
getch();
}