Computer Science, asked by Ishan5236, 1 year ago

Write a while loop that displays numbers 2 4 6 8

Answers

Answered by Rumi123456789
0



In which program???
Answered by drazhy961
1

int num =2;

while(num<=8){

System.out.println(num);

num+=2;

}

}

}

This is a java program.

Similar questions