Что у меня в коде не так я все написал но оно все равно пишет что неправильно | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Что у меня в коде не так я все написал но оно все равно пишет что неправильно

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Code_Coach_Challenge { class Program { static void Main(string[] args) { //стороны комнаты double length; double width; length = 5.4; Convert.ToDouble(Console.ReadLine()); width = 2.3; Convert.ToDouble(Console.ReadLine()); //выведите площадь Console.WriteLine(length * width); } } }

12th Feb 2021, 3:50 PM
Тимур Сидоров
Тимур Сидоров - avatar
1 Answer
0
You are already assigning value to variables . ""length=5.4; Convert.ToDouble(Console.ReadLine()) ; "" But i believe it should be as follow if you are looking for user input values, ""length=Convert.ToDouble(Console.ReadLine())""
12th Feb 2021, 3:57 PM
Abhay
Abhay - avatar