Mashudi

Luas-Persegi(header iostream)

Sep 30th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int a,b,c;
  7.         cout << "Masukkan Panjang : ";
  8.         cin >> a;
  9.         cout << "Masukkan Lebar : ";
  10.         cin >> b;
  11.         c = a * b;
  12.         cout << "Luas Persegi : " << c << "\n";
  13.     return 0;
  14. }
Add Comment
Please, Sign In to add comment