#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{ //Dennis Ritchie
clrscr();int i;char
in[20];printf("Who is the inventor of C ?\n");i=0;
while(i<=2)
{
gets(in);if(strcmp("Dennis
Ritchie",in)==0)
{
printf("Good");break;
}
else
{
printf("\nTry
again");++i;
}
}
if(i==3)
printf("\nDennis
Ritchie");
getch();
}
No comments:
Post a Comment
Please comment bellow. Share your knowledge