Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Naloga {
- public static void main(String[] args)
- {
- Scanner in = new Scanner(System.in);
- System.out.print("Vnesi letnico");
- int a = in.nextInt();
- if(a % 4 == 0 && a % 100 != 0) {
- System.out.println("Leto je prestopno");
- } else {
- System.out.println("Leto ni prestopno");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement