Option choosing game made for c++

 Choosing a option game make by c++

So this a choose a option and get the output on the screen this is very interesting game. 

        Code

#include<iostream>
using namespace std;

int main()
{
int a=1, b=2, c=3, d=4;
int x;
cout<<"choose a option "<<endl;
cout<<"1\n2\n3\n4"<<endl;
cout <<"write your options ";
cin>>x;
switch(x)
{
case 1:
cout<<"you are ugly";
break;
case 2:
cout<<"you are intelligent ";
break;
case 3:
cout<<"OK you are intelligent but you don't speak";
break;
case 4:
cout<<"OK you are dumb ";
break;
}
cout <<"\n====Thanks for useing====";
return 0;
}

So this is the make by skeleton programmer


Comments

Popular posts from this blog

Making a simple game using c++ if/else and finctions

calculator use html with source code

how to find area of rectangle in c++