-
-
Save codecademydev/e852b76aaa215ff213247e41f334c5f0 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Credits : Krish Ganatra | |
#include<iostream> | |
int main(){ | |
//Code Begins Here | |
//Declaring Variables | |
int start; | |
std::cout<<"HI, WELCOME TO THE OFFICIAL TEXT ADVENTURE BY KRISH GANATRA\n"; | |
//Introduction | |
std::cout<<"Press 1 to start\n"; | |
std::cin>>start; | |
//Taking Input from user to start the Adventure | |
if(start==1) | |
{ | |
std::cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; | |
} | |
//Instructions | |
std::cout<<"Note to proceed in this adventure you need to enter any number so that you can read the next line\n\n\n\n\n\n"; | |
int b; | |
std::cin>>b; | |
std::cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; | |
//The true Text Adventure | |
std::cout<<"You are travelling in a plane\n"; | |
std::cin>>b; | |
std::cout<<"You are above a large ocean\n"; | |
std::cin>>b; | |
std::cout<<"The plane has suddenly started shaking........................What will you do\n\n\n"; | |
std::cout<<"Option 1 : Just sit on My Seat and be Relaxed\n"; | |
std::cout<<"OR\n"; | |
std::cout<<"Option 2 : Obey what the air hostess is saying and jump off the plane with a parachute."; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment