write a program to print the area of a circle of radius 3 inches
Answers
Answered by
1
Answer:
Explanation:
wait let me open my bluej
here is your answer
Attachments:
Answered by
4
I am assuming that the required programming language is Turbo C++.
First, you need to know the formula for area of a circle.
But, while writing program we cannot write "π". We have to write "3.14" or "22/7".
#include <iostream.h>
#include<conio.h>
void main()
{
⠀⠀⠀⠀⠀clrscr();
⠀⠀⠀⠀⠀cout<<"This program prints the ⠀⠀⠀⠀⠀⠀⠀area of circle of radius 3 ⠀⠀⠀⠀⠀⠀⠀inches."<<endl;
⠀⠀⠀⠀⠀Area = 3.14 * 3 * 3;
⠀⠀⠀⠀⠀cout<<"Area is: "<<Area<<"inch ⠀⠀⠀⠀⠀square"<<endl;
⠀⠀⠀⠀⠀getch();
}
Similar questions
Biology,
3 months ago
Sociology,
3 months ago
Social Sciences,
7 months ago
Chemistry,
11 months ago
Physics,
11 months ago