Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import java.util.*;
  2. public class odd {
  3.  
  4. public static void main(String[] args) {
  5. // TODO Auto-generated method stub
  6. Scanner s=new Scanner(System.in);
  7. int n=s.nextInt();
  8. if(n%2==0)
  9. {
  10. System.out.println("even");
  11. }
  12. else
  13. {
  14. System.out.println("odd");
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement