0

cheer

Can you help me what the wrong of the code if (yard >10){ System .out.println ("high five"); } else if (yard>1&&yard<=10){System .out.println ("RA!RA!RA!RA!RA!"); } else {System .out.println ("shh");}

30th Nov 2020, 4:56 PM
Amal Bakier
Amal Bakier - avatar
3 Antworten
+ 4
If yard= 1 to 10, then you have to output " Ra! " of yard number of times. Not always 5 times.. For if yard=7, output Ra! 7 times.. If 3, then 3 times.. Check spelling also if any..
30th Nov 2020, 5:03 PM
Jayakrishna 🇮🇳
+ 1
Yes yes i get it Thank you every one Most of wrong cause of spelling and the condition of Ra
30th Nov 2020, 5:26 PM
Amal Bakier
Amal Bakier - avatar