Answer to Question #268255 in C++ for Success

Question #268255

c++ full program that calculate the value of u. u=a+gv(squareRoot2), where g is constant


1
Expert's answer
2021-11-18T15:21:59-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS