Computer Science, asked by Manmeet1835, 1 year ago

Show the output of the following Program
#include void main(){floatr,a;const float PI=3.14;cin>>r;a=PI*r*r;cout

Answers

Answered by pattayetujhe8
3

Answer:

Its depends on the value of radius. if I give it r=2. the output will be:

12.56

Explanation:

int main(){

float r,a;

const float PI=3.14;

cout<<"Enter radius: ";

cin>>r;     //if    r=2

a=PI*r*r;

cout<<a;          //a=12.56

return 0;

}

a=PI*r*r

a=3.14*2*2

a=3.14*4

a=12.56

Similar questions