0
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; names
If anyone has know this question then tell me
4 Respostas
+ 3
What is the question?
+ 3
Aryan Maurya Mr.perfect please show us your attempt
and follow the 8 rules for getting help.
https://www.sololearn.com/blog/38/8-simple-rules-to-get-help-from-the-community
+ 2
Aryan Maurya Mr.perfect
Area of circle
pi * r * r;
pi is given
Take r as input
0
We are going to write a program that will calculate the area of a circle.
The area enclosed by a circle of radius r is πr², where π (pi) is the constant ratio of the circumference of any circle to its diameter, and r is the radius.
The given program declares a constant pi variable with a value of 3.14.
Complete the program to take the radius as input, then calculate and output the area of the circle.
Sample Input
5
Sample Output
78.5