#include<stdio.h>
#include<stdlib.h>
#include <conio.h>
#include <string.h>
#include <dos.h>
#include<time.h>
int counter();
main()
{
int answer;
long int i=0;
time_t t;
t = time(NULL);
struct tm tm = *localtime(&t);
printf("Date: %d-%d-%d\n", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf("\t\t\t\t\t****** C Mini Project Work %d ****** \n ",tm.tm_year+1900);
printf(" \t\t\t\t\t By \n ");
printf(" \t\t\t\t\t\t Md. Samir Safi\n ");
printf(" \t\t\t\t\t\t Grade - XI'K'\n ");
printf(" \t\t\t\t\t\tUnder guidance of \n ");
printf(" \t\t\t\t\t\tEr. Purushottam Lal Karn\n\n ");
printf("\n\n\n(Press any key to continue...)");
getchar();
system("cls");
printf("\t\t *** WELCOME TO KO BANCHHA CROREPATI*** ");
printf("\n\n\n(Press any key to continue...)");
getchar();
system("cls");
printf("1)Who was the first president of Nepal?\n");
printf("\n1) Dr. Ram Baran Yadav \t 2) Mrs. Vidya Devi Bhandari \n");
printf("\n3) Mr. Sher Bahadur Deuba \t 4) Mr. K.P. Oli\n");
scanf("%d",&answer);
if(answer==1)
{
printf("CORRECT!!!\n");
i=i+1000;
printf("You win Rs.%ld\n",i);
getchar();
}
else
{
system("cls");
getchar();
printf("Wrong Answer!!\n");
printf("you earned Rs.%ld",i);
printf("\n\n\nGAME OVER!!!\n");
getchar();
exit(0);
getchar();
}
getchar();
system("cls");
printf("2)Who is the Father of Computer?\n ");
printf("\n1) Lady Augusta Ada \t 2) Blaise Pascal\n");
printf("\n3) Issac Newton \t 4) Charles Babbage\n");
scanf("%d",&answer);
if(answer==4)
{
printf("CORRECT!!!\n");
i=i+1000;
printf("You win Rs.%ld\n",i);
getchar();
}
else
{
getchar();
system("cls");
printf("Wrong Answer!!\n");
printf("you earned Rs.%ld",i);
printf("\n\n\nGAME OVER!!!\n");
getchar();
exit(0);
getchar();
}
getchar();
system("cls");
printf("3) Which of the following is Palindrome Number ?\n ");
printf("\n1) 100 \t 2) 101\n");
printf("\n3) 103 \t 4) 102\n");
scanf("%d",&answer);
if(answer==2)
{
printf("CORRECT!!!\n");
i=i+1000;
printf("You win Rs.%ld\n",i);
getchar();
}
else
{
getchar();
system("cls");
printf("Wrong Answer!!\n");
printf("you earned Rs.%ld",i);
printf("\n\n\nGAME OVER!!!\n");
getchar();
exit(0);
getchar();
}
}