+ 4

Do we have to start with {0} for printing in c#?

https://code.sololearn.com/c6vC83H9OeJi/?ref=app sorry for asking such a basic question. I am new in c#

15th Aug 2020, 11:20 AM
The future is now thanks to science
The future is now thanks to science - avatar
3 odpowiedzi
+ 2
You can do this way also Console.WriteLine("x = "+x); Console.WriteLine("y = "+y);
15th Aug 2020, 11:35 AM
Abdulaziz Abdurasul
Abdulaziz Abdurasul - avatar
0
Thank you everyone for giving your valuable time.
15th Aug 2020, 11:43 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
Md. Nasif-ur-Rahman Rimon you are right but in c++ we write the way given by you and Abdulaziz Abdurasul .
15th Aug 2020, 11:45 AM
The future is now thanks to science
The future is now thanks to science - avatar