fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5.  
  6. {
  7. int r, L;
  8. float phi = 3.14;
  9.  
  10. cout<<"Menghitung luas lingkaran";
  11. cin>> r;
  12. L = phi*r*r;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 5316KB
stdin
 5.5
stdout
Menghitung luas lingkaran