What is Wrong in My Code!! (it's Coding to Print your name) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is Wrong in My Code!! (it's Coding to Print your name)

In First Code it's Right if I Slightly changed its comming Wrong. Check it!! Link :- https://code.sololearn.com/cOrV3IrlEfme/?ref=app

22nd Jun 2021, 7:06 AM
Yash Saple
2 Answers
+ 5
Yash Saple Because your 2nd block is outside the main method main() { //This block will be consider for main method } { //this block is without method which is wrong. } And this line is also wrong: Console.WriteLine.("Start?") //you missed semicolon and added dot https://code.sololearn.com/carKO6nZYF5m/?ref=app
22nd Jun 2021, 7:19 AM
A͢J
A͢J - avatar
22nd Jun 2021, 7:26 AM
Yash Saple