- 3

Write a program to print bus no brtween 10 to 19 .A bus no is eithervdivisible by 7 and ends with 7 .with java for loop .

Please tell soon .

9th Jan 2019, 12:17 PM
nishant singh
nishant singh - avatar
3 Respuestas
+ 1
for (int i =10;i<20;i++) if (( i%10 == 7) && (i%7==0) System.out.println (i); Untestet, but shold work ;-) But in the given Range is no such number!
9th Jan 2019, 12:31 PM
PapaBT
PapaBT - avatar
+ 4
It would be nice to show your own attempts, to facilitate learning.
9th Jan 2019, 12:30 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
PapaBT 1. Is there such as number? 2. Note the word "either" 3. Don't help home question right away, it's SoloLEARN here not soloANSWER
9th Jan 2019, 1:40 PM
Gordon
Gordon - avatar