Page 650 - Computer science 868 Class 12
P. 650

43       }
                44       v=v+tot;

                45       v=v%7;
                46       System.out.println("Day as on"+S+"is"+day[v]);
                47           }

                48       }

                49       class Ddate_Main
                50       {
                51       public static void main()

                52       {
                53       Ddate ob=new Ddate();

                54       ob.accept();
                55       ob.find_day();

                56           }
                57       }

              Output of the preceding program is as follows:
              Enter the Date in DD-MM-YYYY format:
              04-06-2019
              Enter the Day of 1st January 2019
              Tuesday
              Day as on 04-06-2019 is Wednesday







































                648648  Touchpad Computer Science-XII
   645   646   647   648   649   650   651   652   653   654   655