Saturday, 19 March 2016

C Program For Print "I AM IDIOT" Instead Of Your Name Using Array

#include<stdio.h>
#include<conio.h>
main()
{
char ch[]="I AM AN IDIOT.";
char c='A';
int i=0;
printf("Write Your Name \n\n");
while(c)
{
c=getch();
printf("%c\a",ch[i]);
i++;
if(i==14)
{
printf(" "); i=0;
}
}
}

Output:-


No comments:
Write comments

Recommended Posts × +