import java.util.Scanner;
public class Prog1226 {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int arr[] = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = scan.nextInt();
}
for (int i = 0; i < n; i++) {
if (arr[i] % 2 == 0)
System.out.println("4");
else
System.out.println(arr[i] + 3);
}
}
}
0.0分
0 人评分
简单的a+b (C语言代码)浏览:670 |
买不到的数目 (C++代码)浏览:867 |
C语言程序设计教程(第三版)课后习题5.8 (C语言代码)浏览:569 |
A+B for Input-Output Practice (III) (C语言代码)浏览:570 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:640 |
WU-蓝桥杯算法提高VIP-勾股数 (C++代码)浏览:1595 |
wu-淘淘的名单 (C++代码)浏览:1337 |
用筛法求之N内的素数。 (C++代码)浏览:692 |
复数求和 (C语言代码)浏览:923 |
敲七 (C语言代码)浏览:2700 |