MediaWiki:Wiki-navigation


 * Wiki Content
 * Recently Changed Pages
 * Most popular
 * Top Categories
 * Polls
 * List of Admins
 * New pages that have been added
 * Blogs
 * Gaming Articles
 * Games
 * Pc
 * PS2
 * Ps3
 * Ds
 * 3d Ds
 * Xbox
 * Xbox 360
 * Psp
 * Wii
 * Project:Community Portal|Community
 * Blog:Recent_posts|Recent blog posts
 * Forum:Index|Forum

public class DayOfWeek { public static void main(String[] args) { int m = Integer.parseInt(args[0]); int d = Integer.parseInt(args[1]); int y = Integer.parseInt(args[2]);

int y0 = y - (14 - m) / 12; int x = y0 + y0/4 - y0/100 + y0/400; int m0 = m + 12 * ((14 - m) / 12) - 2; int d0 = (d + x + (31*m0)/12) % 7;

System.out.println(d0); }

}