Advertisement
LauriFriberg

Newton.cpp, counts the Force in Newtons, F=mass*acceleration

Jun 9th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. //Made by Lauri K. Friberg on 9.6.2018, at 13:43.
  2. //Newton.cpp, counts the Force (F) in Newtons(N) based on mass (n, kg, kilograms) and acceleration (a, m/s/s=m/s²).
  3. #include <iostream>
  4. using namespace std;
  5. int main(void)
  6. {
  7. float F=0, m=0, a=0;
  8. cout << "m(kg) = "; cin >> m;
  9. cout << "a(m/s/s) = a(m/s²) = "; cin >> a;
  10. cout << "F(Newton) = ma (kgm/s/s) = ma (kgm/s²) = " << m*a << "N\n";
  11.  
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement