Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class odd {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Scanner s=new Scanner(System.in);
- int n=s.nextInt();
- if(n%2==0)
- {
- System.out.println("even");
- }
- else
- {
- System.out.println("odd");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement