Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Made by Lauri K. Friberg on 9.6.2018, at 13:43.
- //Newton.cpp, counts the Force (F) in Newtons(N) based on mass (n, kg, kilograms) and acceleration (a, m/s/s=m/s²).
- #include <iostream>
- using namespace std;
- int main(void)
- {
- float F=0, m=0, a=0;
- cout << "m(kg) = "; cin >> m;
- cout << "a(m/s/s) = a(m/s²) = "; cin >> a;
- cout << "F(Newton) = ma (kgm/s/s) = ma (kgm/s²) = " << m*a << "N\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement