Advertisement
scaawt

CSCE Lab05

Sep 17th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. /**
  2.  * Written by --
  3.  */
  4.  
  5. import java.util.Scanner;
  6. public class Lab05 {
  7.  
  8.  
  9.   public static void main(String[] args) {
  10.     System.out.println("Would you like to know your Chinese Zodiac Symbol? Enter your birth year!");
  11.     Scanner keyboard = new Scanner(System.in);
  12.     int year = keyboard.nextInt();
  13.    
  14.     if(year>1924){
  15.     }
  16.     System.out.println(year-1924%12);
  17.     if (year<1924){
  18.     }
  19.       System.out.println("Invalid Year!");
  20.    
  21.    
  22.  
  23.  
  24.  
  25.  
  26.   }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement