Q:

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

0

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

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#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:
Write Your Name 

I AM IDIOT . I AM IDIOT

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now