Answer to Question #268867 in Java | JSP | JSF for Feyb

Question #268867

A line containing an integer.


35

Output

A line containing a string.

Out





1
Expert's answer
2021-11-20T06:45:24-0500
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println(in.nextInt() % 2 == 0 ? "In" : "Out");
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS