Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class practice {
- public static void main(String [] args){
- for(int x = 0; x <= 100; x++){
- if(x % 2 == 0){
- System.out.println(x + " even");
- } else if(x % 2 == 1){
- System.out.println(x + " odd");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment