0
Please help me to do project of C# area of circle
Beginner
11 Réponses
+ 3
⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬛⬜⬛⬜⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬛⬜⬛⬛⬜
⬜⬛⬜⬛⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬜⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬜⬜⬜⬛⬜
⬜⬛⬛⬛⬛⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬛⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜
IS REQUIRED
+ 2
And just print the result only
+ 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);
}
}
}
+ 1
Take user input Nilesh Mahajan
+ 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 ;)
0
Post your code first
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
0
Please 🥺
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
}
}
}
0
Ok
0
Thx