c++ full program that calculate the value of u. u=a+gv(squareRoot2), where g is constant
#include <iostream>
using namespace std;
const g = 10;
int main() {
float v,u,a;
cout<<"Enter velocity \n" ;
cin>> v ;
cout<<"Enter acceleration \n" ;
cin>> a ;
u = a + 2*g*v ;
cout<< u;
return 0;
}
Comments
Leave a comment