+ 1

Why i must put ; in the end of each line

26th Mar 2019, 4:22 PM
Belkassem Mustapha
Belkassem Mustapha - avatar
5 Réponses
+ 3
Think as if the code compiler was your friend, and you're texting with him/her. You have a habit of writing lengthy text without any punctuation. Comma and period has no place in your text. Only God knows where your sentence begin and where it ends, being without any punctuation. The compiler really has no clue where the instructions begin or where they end without the semicolon. Hope this clear things up a bit : )
26th Mar 2019, 4:33 PM
Ipang
+ 2
You're very welcome my friend, and Thank you for kind wish ... Salam.
26th Mar 2019, 5:17 PM
Ipang
+ 1
good friend but look when i write this code for exemple console.writeline(Mustapha) why i must pût it so from you comment i understand that in code c# every command must end with ;
26th Mar 2019, 4:43 PM
Belkassem Mustapha
Belkassem Mustapha - avatar
+ 1
Yes my friend, you got the point of the story right 👍 Also, must keep in mind, language such as C# is case sensitive, it means 'console.writeline' is considered different with 'Console.WriteLine'. Happy coding!
26th Mar 2019, 4:53 PM
Ipang
+ 1
Thank you very much جازاك الله خيرا
26th Mar 2019, 5:08 PM
Belkassem Mustapha
Belkassem Mustapha - avatar