Computer Science, asked by BenGeesu4596, 1 year ago

Where to put comments in an if...elif..else construct?


RebelStar: yes
RebelStar: u can't irritate
Anonymous: Why can't I?
RebelStar: becoz if u Will do then i will kiss u lips so hard
Anonymous: What do I lack?
Anonymous: Ohh you can't
Anonymous: (my ugly lips..
RebelStar: not only your lips every part of your body
Anonymous: But you can't
RebelStar: why i can't say

Answers

Answered by Anonymous
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


RebelStar: yaa i know how you are fearing of getting kissed
Anonymous: no one kisses me, not even my family
RebelStar: I can
Anonymous: u dont know my state even how can you
Anonymous: but y not continue as bro and sis
Anonymous: gone?
RebelStar: go yrr
Anonymous: ok
Anonymous: Good Night.
Anonymous: and sorry once again.
Answered by tcs0635513
1

Answer:

System.out.print(b);//prints b

Similar questions