0

Switch case odd even progran

29th Dec 2017, 12:42 PM
JAGANNATH PAUL
2 Antworten
+ 18
switch (x%2){ case 0 :System.out.print ("even"); break; case 1:System.out.print ("odd"); break; } //its rough structure for odd-even number using switch // ur question is unclear to me ☺☺
29th Dec 2017, 12:51 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 1
Where is your question?
29th Dec 2017, 12:50 PM
Lucien
Lucien - avatar