#include<iostream>
#include<string.h>
#include<windows.h>
#include<ctime>
using namespace std;
int main()
{
string responce1,responce2 ,responce3,responce4,response5;
int c,h;
c = (rand() + time(0))% 100;
h=c/2;
system("color f4");
cout<<"\n\n\n\n\n\n\n\n\t\t\t\t*************game****************"<<endl;
system("pause");
system("cls");
system("color f1");
cout<<"\n\n\n\n\n\n\n\n\t\t\t\tthink a number in your mind"<<endl;
Sleep(1000);
cout<<"\n\t\t\t\thave you think,enter yes"<<endl;
cin>> responce1;
system("pause");
system("cls");
system("color f9");
if(responce1=="yes"||responce1=="Yes"||responce1=="YES"||responce1=="y")
{
cout<<"\n\n\n\n\n\n\n\n\t\t\t\tadd same amount for your friend "<<endl;
Sleep(1000);
cout<<"\n\t\t\t\thave you added,enter yes"<<endl;
cin>> responce2;
system("pause");
system("cls");
system("color f5");
if(responce2=="yes"||responce2=="Yes"||responce2=="YES"||responce2=="y")
{
cout<<" \n\n\n\n\n\n\n\n\t\t\t\tadd my "<< c << "ruppes also"<<endl;
Sleep(1000);
cout<<"\n\t\t\t\thave you added,enter yes"<<endl;
cin>> responce3;
system("pause");
system("cls");
system("color f2");
if(responce3=="yes"||responce3=="Yes"||responce3=="YES"||responce3=="y")
{
cout<<"\n\n\n\n\n\n\n\n\t\t\t\tgive half of the amount to a begger"<<endl;
Sleep(1000);
cout<<"\n\t\t\t\thave you give it to begger,enter yes"<<endl;
cin>> responce4;
system("pause");
system("cls");
system("color f6");
if(responce4=="yes"||responce4=="Yes"||responce4=="YES"||responce4=="y")
{
cout<<"\n\n\n\n\n\n\n\n\t\t\t\ttake your amount off.means(take your amount out which you thought earliar."<<endl;
Sleep(1000);
cout<<"\n\t\t\t\thave you get your amount out,enter yes"<<endl;
cin>>response5;
system("pause");
system("cls");
system("color f8");
if(response5=="yes"||response5=="Yes"||response5=="YES"||response5=="y")
{
cout<<"\n\n\n\n\n\n\n\n\t\t\t\tremaining amount is "<< h<< " rupees"<<endl;
}
}
}
}
}
else
cout<<"\n\n\n\n\n\n\n\n\t\t\t\tenter valid input as stated."<<endl;
return 0;
}
Contents covered: queues,Stacks,Arrays,Strings,Trees little concepts of loops and conditional statements. All of this is data structure also known as OOP. classes and structure also used in programms randomly. c++ all concepts will reaptidly shown here
Sunday, April 14, 2019
welcome back after a long time
visite my youtube channel . link is given below
seekersforseekers-youtube channel
facebook page :-
i am programmer codeseekers
Subscribe to:
Posts (Atom)