The following program will keep on printing the statement which is written in printf if the user is pressign any key you can send the .exe file of this code to your friends to fool them .
#include<stdio.h>
#include<conio.h>
void main()
{
char ch[]="I AM AN IDIOT.";
char c='A';
int i=0;
while(c)
{
c=getch();
printf("%c\a",ch[i]);
i++;
if(i==14)//if you change the printf statement then replace this 14 with the size of you string.
{
printf(" ");
i=0;
}
}
}
Enjoy.
Post a Comment