Where to put comments in an if...elif..else construct?
RebelStar:
yes
Answers
Answered by
0
To write one line comments anywhere in the program you need to only put two back slashes .
For example
if(a>b) //the condition
System.out.print(a);//prints a
else
System.out.print(b);//prints b
Answered by
1
Answer:
System.out.print(b);//prints b
Similar questions
Science,
6 months ago
English,
6 months ago
Physics,
6 months ago
Political Science,
1 year ago
Math,
1 year ago