+ 4
Write a c program that requires user to enter a radius of a circle, computes circumference and display the result
(Use pie as 3.14 which should be stored as a constant)
4 Respostas
+ 10
-->Using Formula of Circumference of Circle is 2πr. where [ pi=3.14 ]
#include<iostream>
int main()
{
int radius;
float circumference;
cout<<"Enter Radius : ";
cin>>radius;
circumference=2*3.14*radius;
cout<<"Circumference : "<<circumference;
return 0;
}
+ 5
This is work to do self. It's looking very simple program. If you know the formula of circumference then you can do.
Please first try to do self.
+ 4
ROHIT KANOJIYA You could have let him try first. It is not at all a difficult task.
0
Let me try.
#include <stdio.h>
Int main()
{
float radius =0;
Float const_PI=3.14;
Float circumference=0;
Print("enter radius:");
Scanf("%f ",& radius);
Circumference =2 * 3.14 * radius;
Printf( "%f", circumference);
return 0;
}