Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. float Circum(float val);
  5. int main(){
  6.     float radius;
  7.    
  8.     cout<<"Enter the Radius of the Circle: ";
  9.     cin>>radius;
  10.     cout<<"The Area of the Circle: "<<Circum(radius);
  11.    
  12.     return 0;
  13. }
  14.  
  15. float Circum(float val){
  16.     float ans;
  17.     float pi=3.14;
  18.    
  19.     ans=2*pi*val;
  20.     return ans;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement