Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Naloga {
  4.  
  5. public static void main(String[] args)
  6. {
  7. Scanner in = new Scanner(System.in);
  8. System.out.print("Vnesi letnico");
  9. int a = in.nextInt();
  10. if(a % 4 == 0 && a % 100 != 0) {
  11. System.out.println("Leto je prestopno");
  12. } else {
  13. System.out.println("Leto ni prestopno");
  14.  
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement