C Programming INPUT test
![]() |
| THE SOURCE CODE |
#include <stdio.h>
#include <string.h>
int main(){
/* STORING INPUTS*/
char codes[10];
char fname[10];
int numc;
int numb;
//main functions begins form here//
printf("TYPE THE NAME: \n");
scanf("%s", codes);
if (strcmp(codes, "zedonfire")==0){
printf("You are on the right path %s. \n", codes);
printf("now type the code: \n");
scanf("%d", &numc);
if(numc == 2359){
printf("VERY GERY FINE\n");
printf("NOW TYPE THE SECOND CODE:\n");
scanf("%d", &numb);
if (numb == 9990){
printf("YOU HAVE WON THE AMAZING JOURNEY\n");
printf("NOW TYPE THE FINAL NAME:\n");
scanf("%s", fname);
if (strcmp(fname, "FAISAL")==0){
printf("YOU ARE SUCCEED\n");
printf("CONGRATULATIONS");
}
else
{
printf("NO ONE CAN SAVE YOU");
}
}
else
{
printf("RUN FOR LIFE");
}
}
else
{
printf("NOW ITS TIME TO SEE THE C");
}
}
else
{
printf("COME BACK TOMORROW");
}
return 0;
}
