Add to Favorites    Make Home Page 4292 Online  
 Language Categories  
 Our Services  

Home » C Home » Beginners / Lab Assignments Home » Crorepathi Mini Project)

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Crorepathi Mini Project)
Author G.Balachander
Author Email bala_chander19887 [at] yahoo.co.in
Description It is actually a small game

Category C » Beginners / Lab Assignments
Hits 375008
Code Select and Copy the Code
Code : /* KAUN BANEGA CROREPATHI*/ #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; } } }

Related Source Codes

Script Name Author
The Game Opposite as seen on Nokia 2300 Mobile Manikanta
RECURSIVE BALANCED QUICK SORT ashish
Radix Sort ashish
Change your mouse pointer Ashim
The blinking star Shashank
Data Validation Crylittlebaby
To search a file by giving file type like mp3 or mpeg or doc Prashanth SR
Menus Demonstration B.Chidhambaram
Employee Database Project Using C. Reenku Raman Nayak
Creating a Lexical Analyzer in c fahad bader al-buhairi ¦Õ¤ ?¤Ð Ãß??ÝÐÝ
Calendar Program Omkar & Devendra
Stop double Process for start in C Cedrik Jurak
Stop double Process for start in C Cedrik Jurak
Time Scheduler Atiq Anwar
A timepass game between atmost two players Rahul Roy

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=947


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review