Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. package breakcontinuo;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Main {
  6.  
  7.  
  8. public static void main(String[] args) {
  9. int num;
  10. boolean resposta;
  11. System.out.println("Digite um numero: ");
  12. Scanner s = new Scanner (System.in);
  13. num = s.nextInt();
  14. if (num%2 == 0){
  15. resposta = true ;
  16. System.out.println(resposta);
  17. }
  18. else
  19. {
  20. resposta = false;
  21. System.out.println(resposta);
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment