[코드업] 기초 100제 Java로 풀기 - 1065

곽준영·2023년 2월 16일
0
package codeup_100;

import java.util.Scanner;

public class codeup_65 {

	public static void main(String[] args) {		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(a%2==0) {
			System.out.println(a);
		}
		if(b%2==0) {
			System.out.println(b);
		}
		if(c%2==0) {
			System.out.println(c);
		}
	}
}
profile
I want to become a versatile freelancer programmer💻

0개의 댓글