Write a while loop that displays numbers 2 4 6 8
Answers
Answered by
0
In which program???
Answered by
1
int num =2;
while(num<=8){
System.out.println(num);
num+=2;
}
}
}
This is a java program.
Similar questions