+ 1

Help pls

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; string r; r= Console.ReadLine(); Console.WriteLine(pi* (r* r)); //your code goes here } } }

31st May 2021, 12:23 PM
ALMAZNIK
ALMAZNIK - avatar
2 Answers
+ 5
your variable r should be double . double r; r = Convert.ToDouble(Console.ReadLine());
31st May 2021, 12:25 PM
TOLUENE
TOLUENE - avatar
0
Thx
31st May 2021, 12:36 PM
ALMAZNIK
ALMAZNIK - avatar