Mashudi

E=mc2(header iostream)

Oct 3rd, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int m;
  7.     float c,E;
  8.     c = 89.88;
  9.         cout << "Masukkan Nilai Massa (Kg) : ";
  10.         cin >> m;
  11.         E = m * c * c;
  12.         cout << "E = " << E << " J\n";
  13.     return 0;
  14. }
Add Comment
Please, Sign In to add comment