Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 11, 2020 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/e852b76aaa215ff213247e41f334c5f0 to your computer and use it in GitHub Desktop.
Save codecademydev/e852b76aaa215ff213247e41f334c5f0 to your computer and use it in GitHub Desktop.
Codecademy export
//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