Mashudi

Luas-Lingkaran(header iostream)

Oct 3rd, 2014
285
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 r;
  7.     float Luas, Pi;
  8.     Pi = 3.14;
  9.         cout << "Masukkan Nilai Jari,jari : ";
  10.         cin >> r;
  11.         Luas = Pi * r * r;
  12.         cout << "Luas Lingkaran : " << Luas << "\n";
  13.     return 0;
  14. }
Add Comment
Please, Sign In to add comment