Please help me to do project of C# area of circle | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please help me to do project of C# area of circle

Beginner

29th May 2021, 4:38 AM
Nilesh Mahajan
Nilesh Mahajan - avatar
11 Answers
+ 3
⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬛⬜⬛⬜⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬛⬛⬛⬛⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬜⬜⬜⬜⬜⬜ ⬜⬛⬛⬛⬛⬛⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜ ⬜⬛⬛⬛⬛⬛⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜ ⬜⬛⬛⬛⬛⬛⬜ ⬜⬛⬜⬜⬜⬜⬜ ⬜⬛⬜⬜⬜⬜⬜ ⬜⬛⬛⬛⬜⬜⬜ ⬜⬛⬜⬜⬜⬜⬜ ⬜⬛⬜⬜⬜⬜⬜ ⬜⬛⬛⬛⬛⬛⬜ ⬜⬜⬜⬜⬜⬜⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬛⬜⬛⬛⬜ ⬜⬛⬜⬛⬜⬛⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬜⬜⬜⬜⬜⬜ ⬜⬛⬛⬛⬛⬜⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬛⬜ ⬜⬛⬛⬛⬛⬜⬜ ⬜⬛⬜⬜⬜⬜⬜ ⬜⬛⬜⬜⬜⬜⬜ ⬜⬛⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜ ⬜⬛⬛⬛⬛⬛⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜ IS REQUIRED
29th May 2021, 4:41 AM
NEZ
NEZ - avatar
+ 2
And just print the result only
29th May 2021, 12:48 PM
Atul [Inactive]
+ 1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { const double pi = 3.14; double radius=5; Convert.Todouble ("area of circle={0}",pi*radius*radius); } } }
29th May 2021, 11:41 AM
Nilesh Mahajan
Nilesh Mahajan - avatar
+ 1
Take user input Nilesh Mahajan
29th May 2021, 12:48 PM
Atul [Inactive]
+ 1
Is it also possible to write the code with ()² or ^2? I already know the writing goes like ... (radius * radius) but i am wondering if there is a more easy way of coding it ... Thx ;)
31st Aug 2021, 8:32 AM
FromAlex TotheAnder
FromAlex TotheAnder - avatar
0
Post your code first
29th May 2021, 6:40 AM
Atul [Inactive]
0
All you need to solve the problem is the area equation: pi*r² I think you should already know the functions to get input and print output
29th May 2021, 11:36 AM
Michal Doruch
0
Please 🥺
30th May 2021, 4:53 AM
Nilesh Mahajan
Nilesh Mahajan - avatar
0
//Okay,but please revise the lessons, whenever you are unable to solve using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { const double pi = 3.14; double rad; rad=Convert.ToDouble(Console.ReadLine()); double area=3.14*rad*rad; Console.WriteLine(area); //your code goes here } } }
30th May 2021, 5:27 AM
Atul [Inactive]
0
Ok
30th May 2021, 8:54 AM
Nilesh Mahajan
Nilesh Mahajan - avatar
0
Thx
31st Aug 2021, 4:02 PM
Nilesh Mahajan
Nilesh Mahajan - avatar