+ 1

How to solve the first project in c# area of a circle

I can't solve it

7th Sep 2022, 5:31 PM
Omar Faisi
Omar Faisi - avatar
5 Respuestas
+ 1
const double pi = 3.14; double radius = 5; double Area = pi * (radius * radius); Convert.ToDouble(Area); Console.WriteLine(Area); Convert.ToDouble(radius);
7th Sep 2022, 5:46 PM
Omar Faisi
Omar Faisi - avatar
+ 1
this only gives me the output 78.5 like they asked for in the problem , but i only managed to get it by giving radius a value , i don't know how to make it input
7th Sep 2022, 5:47 PM
Omar Faisi
Omar Faisi - avatar
+ 1
it gave me a wrong output 12.56 it still don't solve the problem with my code I could get the first test with the value 5 there is still 2 others one with the value 6.4 and the last one with the value 10
7th Sep 2022, 5:55 PM
Omar Faisi
Omar Faisi - avatar
+ 1
solved thanks , if you could explain that to me It would be great ( i'm new to this Started only yesterday)
7th Sep 2022, 6:01 PM
Omar Faisi
Omar Faisi - avatar
0
Hello how can I code. app
8th Sep 2022, 1:18 AM
Ogechi Okorie
Ogechi Okorie - avatar