Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Written by --
- */
- import java.util.Scanner;
- public class Lab05 {
- public static void main(String[] args) {
- System.out.println("Would you like to know your Chinese Zodiac Symbol? Enter your birth year!");
- Scanner keyboard = new Scanner(System.in);
- int year = keyboard.nextInt();
- if(year>1924){
- }
- System.out.println(year-1924%12);
- if (year<1924){
- }
- System.out.println("Invalid Year!");
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement