Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package breakcontinuo;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- int num;
- boolean resposta;
- System.out.println("Digite um numero: ");
- Scanner s = new Scanner (System.in);
- num = s.nextInt();
- if (num%2 == 0){
- resposta = true ;
- System.out.println(resposta);
- }
- else
- {
- resposta = false;
- System.out.println(resposta);
- }
- }
- }
Add Comment
Please, Sign In to add comment