What is wrong with this code? I got the correct output but keep getting marked as wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is wrong with this code? I got the correct output but keep getting marked as wrong?

This code is in C# language and is supposed to find the area of a circle, with the user input for radius. https://code.sololearn.com/cgIahDSLrmjX/?ref=app

25th Mar 2022, 2:28 AM
Timothée Luong
2 Answers
+ 3
Do not print anything other than what was required by the task, in this case, the area of circle. Delete the lines printing a prompt for radius input, and the radius value.
25th Mar 2022, 2:53 AM
Ipang
+ 2
Timothée Luong Just remember one thing "when someone gives you task, then don't print your own things, just print that thing which is mentioned". So just print final value.
25th Mar 2022, 5:54 AM
A͢J
A͢J - avatar