if (num % 2 == 0)
{
// even number
}
else
{
// odd number
}
import java.util.Scanner;
public class Exam{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("Enter number");
int input = scan.nextInt();
if(input % 2 != 0){
System.out.println(input + " is odd");
}
else
System.out.println(input + " is even");
}
}
n = 10;
for (int i=0; i<=10; i++){
System.out.println(2*n+1);
}