diff options
| author | Kwok Wha Chui <kwchui@sogyo.nl> | 2016-02-03 12:53:42 +0100 |
|---|---|---|
| committer | Kwok Wha Chui <kwchui@sogyo.nl> | 2016-02-03 12:53:42 +0100 |
| commit | 8340688185d5f5d58fee9a2c8b0f0457b9b57a0c (patch) | |
| tree | c91f413133cd7ff158401964f6651e7fa30f51be /leapyear.java | |
| parent | bc4871842a50dcbf72e13c591aa6fbe9be8b55f7 (diff) | |
Revert "Programma vraagt via scanner om integer en controleerd op schrikkeljaar"
This reverts commit bc4871842a50dcbf72e13c591aa6fbe9be8b55f7.
Revert to base
Diffstat (limited to 'leapyear.java')
| -rw-r--r-- | leapyear.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/leapyear.java b/leapyear.java deleted file mode 100644 index a57b45b..0000000 --- a/leapyear.java +++ /dev/null @@ -1,30 +0,0 @@ -package opdracht1; -import java.util.Scanner; - -public class leapyear { - public static void main(String[] args) { - //Setting up user input - Scanner input = new Scanner(System.in); - - //Prompt - System.out.println("enter the year you wish to evaluate"); - - //Write input to variable - int value = input.nextInt(); - - //Evaluate value using leap year loop and output - if (value%4 != 0) { - System.out.println(value + " is a common year"); - } - else if(value%100 !=0) { - System.out.println(value + " is a leap year"); - } - else if(value%400 !=0) { - System.out.println(value + " is a common year"); - } - else { - System.out.println(value +" is a leap year"); - } - } - -} |
