Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.util.Random;
- import static java.lang.System.out;
- class yearCalender
- {
- public static void main(String args[])
- {
- Scanner ghostScanner = new Scanner (System.in);
- out.println("it's a hell of a life, you love Rita ora? Y/N ");
- char fan = ghostScanner.findInLine(".").charAt(0);
- if (fan == 'y')
- {
- out.println("you're a member of the ghostCommunity \nthus the script is running forward");
- out.println("the questioning machine is under maintainance , how about using the calender machine? \ndo you wish to continue Y/N");
- char anotherChoice = ghostScanner.findInLine(".").charAt(0);
- if (anotherChoice == 'Y')
- {
- out.println("you passed the test another time , alright you can ask for any month of your own choice");
- out.println("it should be in number");
- int ghostCustomerInput = ghostScanner.nextInt();
- switch(ghostCustomerInput){
- case 1:
- case 3:
- case 5:
- case 7:
- case 8:
- case 10:
- case 12:
- out.println(ghostCustomerInput + " has 31 days" );
- break;
- case 4:
- case 6:
- case 9:
- out.println(ghostCustomerInput + " has 30 days only ");
- case 2:
- out.println("bruv is it a leap year answer in binary :) ");
- int leapBoolean = ghostScanner.nextInt();
- if (leapBoolean == 1){
- out.println(ghostCustomerInput + " has 29 days");
- }
- else{
- out.println(ghostCustomerInput + " has 28 days ");
- }
- }
- }
- else{
- out.println("404 Forbidden content");
- }
- }
- else {
- out.println("it's a hell of a life \nbro you wanna play the dino game? ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement