// A small game based on KBC
#include<stdio.h>
main()
{
int i,a[10],n=0;
printf("WELCOME TO THE GAME
""KAUN BANEGA CROREPATHI""
It
contains
10 QUESTIONS each carries 10 LAKHS
");
for(i=1;i<=10;i++)
{
n=n+1;
switch(i)
{
case 1:
printf("In what direction muslim pray
1.East
2.South
3.Nearby
Mosque's direction
4.Mecca's direction
");
scanf("%d",&a[n]);
if(a[n]==4)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 2:
printf("Who is the Mother of RAMA in
Ramayana
1.Kousalya
2.Kaikai
3.Sumitra
4.Mantra
");
scanf("%d",&a[n]);
if(a[n]==1)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 3:
printf("What is the Symbol of Nazis(Army of Great
Hitler)
1.Cross
2.Skull and Bones
3.Owl
4.Swastika
");
scanf("%d",&a[n]);
if(a[n]==4)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 4:
printf("Who among these is not an Railway Minister
1.Mamtha
Banerjee
2.Lal Bahadur Shastri
3.Geetha Mukerjee
4.George
Fernandis
");
scanf("%d",&a[n]);
if(a[n]==3)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 5:
printf("Who Correctly Answered to Yaksha's
Questions
1.Drona
2.Abimanyu
3.Yudishtira
4.Arjuna
");
scanf("%d",&a[n]);
if(a[n]==3)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 6:
printf("Who Heads Reserve Bank of India
1.Finance
Minister
2.Commissioner
3.Chief Bank Manager
4.Governor
");
scanf("%d",&a[n]);
if(a[n]==4)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 7:
printf("Which of these Animals
Laughs
1.Monkey
2.Tiger
3.Giraffe
4.Hyna
");
scanf("%d",&a[n]);
if(a[n]==4)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 8:
printf("Which is the system of Governance in
China
1.communism
2.communalism
3.Monarchy
4.Democratic
");
scanf("%d",&a[n]);
if(a[n]==1)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 9:
printf("How many Rings does Olympic Symbol
have
1.3
2.2
3.6
4.5
");
scanf("%d",&a[n]);
if(a[n]==4)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
Your Next Question is
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
case 10:
printf("Who patronised Kalidas
1.Akbar
2.Chandra Guptha
3.Vikrama
Aditya
4.Krishna Devaraya
");
scanf("%d",&a[n]);
if(a[n]==3)
{
printf("You have entered the correct answer
Now you have won
Rs.%d00000
*YOU HAVE BECOME CROREPATHI OF THIS WEEK*
",i);
}
else
{
printf("
You have entered the wrong answer
Better Luck Next
Time
You have earned Rs.%d00000",i-1);
i=11;
}
break;
default:
break;
}
}
}
// End of Program