Thursday, August 28, 2014

a calendar program using the current month


Code

#include<stdio.h>

int main()

{
printf ("Sun\tMon\tTue\tWed\tThus\tFri\tSat\n");
printf (" \t \t \t \t 1 \t 2 \t 3\n");
printf (" 4 \t 5 \t 6 \t 7 \t 8 \t 9 \t 10\n");
printf ("11 \t12 \t13 \t14 \t 15 \t16 \t 17\n");
printf ("18 \t19 \t20 \t21 \t 22 \t23 \t 24\n");
printf ("25 \t26 \t27 \t28 \t 29 \t30 \t 31\n");

getch ();
return 0;
}

Output


C Language Calendar

No comments :

Post a Comment

Note: Only a member of this blog may post a comment.

Copyright 2017. All Rights Reserved. Privacy Policy / Terms And Conditions / Sitemap / Contact