0
Does anyone know how to code the area of circle?
Its the number 12 question on c# I already tried my best to do it but i still cant.
7 ответов
+ 10
Can you share the code you have written (if any) so far.
+ 7
Yes...me
Lothar you too?
+ 3
If we will tell you the answer then how will you develop the logic ?
0
I did this
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;
//your code goes here
double n = (pi*(radius*radius));
Console.Writeline (n);
}
}
}
- 1
Yeah!
π*r*r