Computer Science, asked by Emarled, 7 months ago

write a program to print the area of a circle of radius 3 inches​

Answers

Answered by adbadwaik
1

Answer:

Explanation:

wait let me open my bluej

here is your answer

Attachments:
Answered by VerifiedAnswer1
4

I am assuming that the required programming language is Turbo C++.

\sf{\\}

First, you need to know the formula for area of a circle.

\dagger \boxed{\sf{Area_{(circle)} = \pi r^2}}

But, while writing program we cannot write "π". We have to write "3.14" or "22/7".

\rule{400}{4}

#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