HI CAN U PLS HELP ME IN ADDING SOMETHING TO THIS PROGRAM TO BE LOOK GOOD.
HERES THE PROGRAM I'VE MADE.


#include <stdio.h>
#include <conio.h>
int a,b,c;
int main()
{
clrscr();
printf("Enter Number:");
scanf("%d",&c);
switch(c)
{
case 1:
printf("\t\t\tJanuary 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t1\t2\t3\t4\t5\t6\n\n");
printf("\t7\t8\t9\t10\t11\t12\t13\n\n");
printf("\t14\t15\t16\t17\t18\t19\t20\n\n");
printf("\t21\t22\t23\t24\t25\t26\t27\n\n");
printf("\t28\t29\t30\t31\n\n");break;

case 2:
printf("\t\t\tFebruary 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t\t\t\t1\t2\t3\n\n");
printf("\t4\t5\t6\t7\t6\t9\t10\n\n");
printf("\t11\t12\t13\t14\t15\t16\t17\n\n");
printf("\t18\t19\t20\t21\t22\t23\t24\n\n");
printf("\t25\t26\t27\t28\n\n");break;

case 3:
printf("\t\t\tMarch 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}printf("\t\t\t\t\t1\t2\t3\n\n");
printf("\t4\t5\t6\t7\t6\t9\t10\n\n");
printf("\t11\t12\t13\t14\t15\t16\t17\n\n");
printf("\t18\t19\t20\t21\t22\t23\t24\n\n");
printf("\t25\t26\t27\t28\t29\t30\t31\n\n");
break;
case 4:
printf("\t\t\tApril 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t1\t2\t3\t4\t5\t6\t7\n\n");
printf("\t8\t9\t10\t11\t12\t13\t14\n\n");
printf("\t15\t16\t17\t18\t19\t20\t21\n\n");
printf("\t22\t23\t24\t25\t26\t27\t28\n\n");
printf("\t29\t30\n\n");break;

case 5:
printf("\t\t\tMay 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t\t1\t2\t3\t4\t5\n\n");
printf("\t6\t7\t8\t9\t10\t11\t12\n\n");
printf("\t13\t14\t15\t16\t17\t18\t19\n\n");
printf("\t20\t21\t22\t23\t24\t25\t26\n\n");
printf("\t27\t28\t29\t30\n\n");break;

case 6:
printf("\t\t\tJune 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t\t\t\t1\t2\t3\n\n");
printf("\t3\t4\t5\t6\t7\t8\t9\n\n");
printf("\t10\t11\t12\t13\t14\t15\t16\n\n");
printf("\t17\t18\t19\t20\t21\t22\t23\n\n");
printf("\t24\t25\t26\t27\t28\t29\t30\n\n");break;

case 7:
printf("\t\t\tJuly 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t1\t2\t3\t4\t5\t6\t7\n\n");
printf("\t8\t9\t10\t11\t12\t13\t14\n\n");
printf("\t15\t16\t17\t18\t19\t20\t21\n\n");
printf("\t22\t23\t24\t25\t26\t27\t28\n\n");
printf("\t29\t30\t31\n\n");break;

case 8:
printf("\t\t\tAugust 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t\t\t1\t2\t3\t4\n\n");
printf("\t5\t6\t7\t8\t9\t10\t11\n\n");
printf("\t12\t13\t14\t15\t16\t17\t18\n\n");
printf("\t19\t20\t21\t22\t23\t24\t25\n\n");
printf("\t26\t27\t28\t29\t30\t31\n\n");break;

case 9:
printf("\t\t\tSeptember 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t\t\t\t\t\t1\n\n");
printf("\t2\t3\t4\t5\t6\t7\t8\n\n");
printf("\t9\t10\t11\t12\t13\t14\t15\n\n");
printf("\t16\t17\t18\t19\t20\t21\t22\n\n");
printf("\t23\t24\t25\t26\t27\t28\t29\n\n");
printf("\t30"); break;

case 10:
printf("\t\t\tOctober 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t1\t2\t3\t4\t5\t6\n\n");
printf("\t7\t8\t9\t10\t11\t12\t13\n\n");
printf("\t14\t15\t16\t17\t18\t19\t20\n\n");
printf("\t21\t22\t23\t24\t25\t26\t27\n\n");
printf("\t28\t29\t30\t31\n\n");break;

case 11:
printf("\t\t\tNovember 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t\t\t\t1\t2\t3\n\n");
printf("\t4\t5\t6\t7\t6\t9\t10\n\n");
printf("\t11\t12\t13\t14\t15\t16\t17\n\n");
printf("\t18\t19\t20\t21\t22\t23\t24\n\n");
printf("\t25\t26\t27\t28\t29\t29\t30\n\n");break;

case 12:
printf("\t\t\tDecember 2007");
printf("\n\t");
for(b=1;b<=51; b++)
{
if(b==51)
printf("=\n");
else
printf("=");
gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t");
for(b=1;b<=51;b++)
{
if(b==51)
printf("=\n");
else
printf("=");
}
printf("\t\t\t\t\t\t\t1\n\n");
printf("\t2\t3\t4\t5\t6\t7\t8\n\n");
printf("\t9\t10\t11\t12\t13\t14\t15\n\n");
printf("\t16\t17\t18\t19\t20\t21\t22\n\n");
printf("\t23\t24\t25\t26\t27\t28\t29\n\n");
printf("\t30");
break;
} } } } } } } } } } } }
getch();
return 0;
}}

Member Avatar for iamthwee

1. Loose the stuff which makes your code unportable.
2. Loose the hard-coded stuff.

>> HI CAN U PLS HELP ME IN ADDING SOMETHING TO THIS PROGRAM TO BE LOOK GOOD.
Code tags! - [code]

[/code]

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.