program to print calendar in java
import java.util.*; class Calendar { public static void main(String ar[]) { int a=0,E=0,A=0,D=0; int end=0; int t=1; char y[]=new char[4]; int year[]=new int[4]; int c[]=new int[2]; System.out.println("enter any date "); Scanner in=new Scanner(System.in); int d=in.nextInt();//day int m=in.nextInt();//month in.nextLine(); String yy=in.nextLine();//year System.out.println(d+"/"+m+"/"+yy); int B=Integer.parseInt(yy); c[0]=B/100; c[1]=B%100; int dd=d%7; if ((B%4==0)&&(m==2)) { end=29; } else if(m==2) end=28; switch(m) { case 1:a=0; end=31; break; case 2:a=3; break; case 3:a=3; end=31; break; case 4:a=6; end=30; break; case 5:a=1; end=31; b...