Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.*;
- public class Solution {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int a = sc.nextInt();
- int b = sc.nextInt();
- if ((a%2==0&&b%2==0)||(a%2!=0&&b%2!=0)){
- System.out.println("genap");
- }else {
- System.out.println("ganjil");
- }
- }
- }
Add Comment
Please, Sign In to add comment