Computer Science, asked by priyapooja307, 6 months ago

write a java program to print multiples of five from 100 to 5​

Answers

Answered by sreevardhanchunkz
0

Explanation:

package TIHLoops;

public class TIHMultipleOf5 {

public static void main(String[] args) {

System.out.println("Multiple of 5 are: ");

for(int number=0; number<100; number++){

//check if number is multiple of 5

if(number%5==0){

System.out.print(number+" ");

}

}

}

}

Similar questions