+ 1

Why It is error?

Idk why It is an error can anyone tell me plz const double PI =3.1416; int r = int.Parse(Console.ReadLine()); double area = (r * r * PI); Console.WriteLine("L'area del cercle es: {2}", area);

15th Aug 2021, 9:40 PM
Lluc
2 Réponses
+ 5
The first placeholder can't start with two, you have to replace it with zero. const double PI =3.1416; int r = int.Parse(Console.ReadLine()); double area = (r * r * PI); Console.WriteLine("L'area del cercle es: {0}", area);
15th Aug 2021, 10:01 PM
Zahra ツ
Zahra ツ - avatar
0
Plz
15th Aug 2021, 9:47 PM
Lluc