I don't understand this how do you put a comment at the end of a line of code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I don't understand this how do you put a comment at the end of a line of code

19th Oct 2016, 7:49 AM
Milly petrie
Milly petrie - avatar
2 Answers
+ 1
its simple after semicolon put // and write the comment then write the next line of code in next line.. int x=10; //initializing x int y=30; //initializing y int sum = x+y; //addition
19th Oct 2016, 9:21 AM
Akash Middinti
0
thanks I am not that old so most things on this I don't understand
19th Oct 2016, 11:39 AM
Milly petrie
Milly petrie - avatar