#include<iostream>
using namespace std;
float circarea(float c)
{
float pi=22.0/7.0;
int t;
c=(pi*t*t);
return c;
}
int main()
{
float r,g;
cout<<"Enter the radius"<<endl;
cin>>r;
g=circarea(r);
cout<<"Area is :"<<g;
return 0;
}
I believe int t;
is uninitialized.
i got it thanks 4 help..=)
Last edited on