Sunday, February 28, 2010

Programming on a HOLIday !

Program 1.

#include
#include
void main()
{
int colour;
clrscr()
if (date==1)
printf("hapy holi");
else
printf("advance hpy holi")
getch( )
}

Cmpilatn Error(2).

1.Undefined variable 'date'.
2.Holi does nt exist at infosys.

Program 2.

#include
#include
#include
void main()
{
int colour;
int date;
clrscr()
if (date==1)
printf("hapy holi");
else
{
printf("advance hpy holi");
}
printf("wish you all a very happy Holi");
getch( );
}


Regards,
saurav.

2 comments: