SlideShare a Scribd company logo
1 of 2
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int count=1;
int scorex=0;
int scorey=0;
while(count<=5)
{
char x,y;
cout<<"Shaila Entertainment"<<endl;
cout<<"Presents"<<endl;
cout<<"Rock, Paper, or Scissors?"<<endl;
cout<<"INSTRUCTIONS: input r for rock, p for paper and s for
scissors."<<endl;
cout<<"Player 1's turn."<<endl;
cin>>x;
cout<<"Player 2's turn."<<endl;
cin>>y;
if((x=='r')&&(y=='p'))
{
cout<<"Player 2 wins!"<<endl;
scorey=scorey++;
cout<<"Player 1 : " ;
cout<<scorex<<endl;
cout<<"Player 2 : ";
cout<<scorey<<endl;
}
else if((x=='r')&&(y=='s'))
{
cout<<"Player 1 wins!"<<endl;
scorex=scorex++;
cout<<"Player 1 : " ;
cout<<scorex<<endl;
cout<<"Player 2 : ";
cout<<scorey<<endl;
}
else if((x=='p')&&(y=='r'))
{
cout<<"Player 1 wins!"<<endl;
scorex=scorex++;
cout<<"Player 1 : " ;
cout<<scorex<<endl;
cout<<"Player 2 : ";
cout<<scorey<<endl;
}
else if((x=='p')&&(y=='s'))
{
cout<<"Player 2 wins!"<<endl;
scorey=scorey++;
cout<<"Player 1 : " ;
cout<<scorex<<endl;
cout<<"Player 2 : ";
cout<<scorey<<endl;
}
else if((x=='s')&&(y=='r'))
{
cout<<"Player 2 wins!"<<endl;
scorey=scorey++;
cout<<"Player 1 : " ;
cout<<scorex<<endl;
cout<<"Player 2 : ";
cout<<scorey<<endl;
}
else if((x=='s')&&(y=='p'))
{
cout<<"Player 1 wins!"<<endl;
scorex=scorex++;
cout<<"Player 1 : " ;
cout<<scorex<<endl;
cout<<"Player 2 : ";
cout<<scorey<<endl;
}
else if(x=y)
{
cout<<"It's a DRAW!!!"<<endl;
cout<<"Player 1 : " ;
cout<<scorex<<endl;
cout<<"Player 2 : ";
cout<<scorey<<endl;
}
else
{
cout<<"Input Invalid";
}
count++;
}
getch();
return 0;
}

More Related Content

What's hot

Bubble archery game(c program)
Bubble archery game(c program)Bubble archery game(c program)
Bubble archery game(c program)SETYA HADI
 
Video club consulta
Video club consultaVideo club consulta
Video club consultaRuth Cujilan
 
The Ring programming language version 1.5.2 book - Part 51 of 181
The Ring programming language version 1.5.2 book - Part 51 of 181The Ring programming language version 1.5.2 book - Part 51 of 181
The Ring programming language version 1.5.2 book - Part 51 of 181Mahmoud Samir Fayed
 
The Future of JavaScript (SXSW '07)
The Future of JavaScript (SXSW '07)The Future of JavaScript (SXSW '07)
The Future of JavaScript (SXSW '07)Aaron Gustafson
 
[KOSSA] C++ Programming - 18th Study - STL #4
[KOSSA] C++ Programming - 18th Study - STL #4[KOSSA] C++ Programming - 18th Study - STL #4
[KOSSA] C++ Programming - 18th Study - STL #4Seok-joon Yun
 
Snake in the DOM!
Snake in the DOM!Snake in the DOM!
Snake in the DOM!Gil Steiner
 
Family Office White Paper: ETF Strategies
Family Office White Paper: ETF StrategiesFamily Office White Paper: ETF Strategies
Family Office White Paper: ETF StrategiesPerlman Family Office
 
Replica Sets
Replica SetsReplica Sets
Replica SetsMongoDB
 
The Ring programming language version 1.3 book - Part 41 of 88
The Ring programming language version 1.3 book - Part 41 of 88The Ring programming language version 1.3 book - Part 41 of 88
The Ring programming language version 1.3 book - Part 41 of 88Mahmoud Samir Fayed
 
Storybird resource part_2
Storybird resource part_2Storybird resource part_2
Storybird resource part_2Eric Brace
 
watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話Kohki Miki
 
PyCon2009_AI_Alt
PyCon2009_AI_AltPyCon2009_AI_Alt
PyCon2009_AI_AltHiroshi Ono
 
Writing ashram presentation-conference-presentation
Writing ashram presentation-conference-presentationWriting ashram presentation-conference-presentation
Writing ashram presentation-conference-presentationSchreib Ashram
 
Alphabet free-worksheets
Alphabet free-worksheetsAlphabet free-worksheets
Alphabet free-worksheetshaleypeterson
 

What's hot (18)

201707 CSE110 Lecture 13
201707 CSE110 Lecture 13   201707 CSE110 Lecture 13
201707 CSE110 Lecture 13
 
Bubble archery game(c program)
Bubble archery game(c program)Bubble archery game(c program)
Bubble archery game(c program)
 
Video club consulta
Video club consultaVideo club consulta
Video club consulta
 
The Ring programming language version 1.5.2 book - Part 51 of 181
The Ring programming language version 1.5.2 book - Part 51 of 181The Ring programming language version 1.5.2 book - Part 51 of 181
The Ring programming language version 1.5.2 book - Part 51 of 181
 
The Future of JavaScript (SXSW '07)
The Future of JavaScript (SXSW '07)The Future of JavaScript (SXSW '07)
The Future of JavaScript (SXSW '07)
 
[KOSSA] C++ Programming - 18th Study - STL #4
[KOSSA] C++ Programming - 18th Study - STL #4[KOSSA] C++ Programming - 18th Study - STL #4
[KOSSA] C++ Programming - 18th Study - STL #4
 
Snake in the DOM!
Snake in the DOM!Snake in the DOM!
Snake in the DOM!
 
Family Office White Paper: ETF Strategies
Family Office White Paper: ETF StrategiesFamily Office White Paper: ETF Strategies
Family Office White Paper: ETF Strategies
 
Replica Sets
Replica SetsReplica Sets
Replica Sets
 
Save game function
Save game functionSave game function
Save game function
 
The Ring programming language version 1.3 book - Part 41 of 88
The Ring programming language version 1.3 book - Part 41 of 88The Ring programming language version 1.3 book - Part 41 of 88
The Ring programming language version 1.3 book - Part 41 of 88
 
C code
C codeC code
C code
 
Storybird resource part_2
Storybird resource part_2Storybird resource part_2
Storybird resource part_2
 
watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話
 
PyCon2009_AI_Alt
PyCon2009_AI_AltPyCon2009_AI_Alt
PyCon2009_AI_Alt
 
hean ponreay
hean ponreayhean ponreay
hean ponreay
 
Writing ashram presentation-conference-presentation
Writing ashram presentation-conference-presentationWriting ashram presentation-conference-presentation
Writing ashram presentation-conference-presentation
 
Alphabet free-worksheets
Alphabet free-worksheetsAlphabet free-worksheets
Alphabet free-worksheets
 

Viewers also liked (16)

Loop control in c++
Loop control in c++Loop control in c++
Loop control in c++
 
C++ 11 range-based for loop
C++ 11   range-based for loopC++ 11   range-based for loop
C++ 11 range-based for loop
 
C++loop statements
C++loop statementsC++loop statements
C++loop statements
 
While loop
While loopWhile loop
While loop
 
[C++]3 loop statement
[C++]3 loop statement[C++]3 loop statement
[C++]3 loop statement
 
Flow control in c++
Flow control in c++Flow control in c++
Flow control in c++
 
Flow chart programming
Flow chart programmingFlow chart programming
Flow chart programming
 
Flow of Control
Flow of ControlFlow of Control
Flow of Control
 
Loops
LoopsLoops
Loops
 
Flow of control ppt
Flow of control pptFlow of control ppt
Flow of control ppt
 
Flow charts
Flow chartsFlow charts
Flow charts
 
Flow chart
Flow chartFlow chart
Flow chart
 
ppt of flowchart
ppt of flowchartppt of flowchart
ppt of flowchart
 
Flow chart powerpoint presentation slides ppt templates
Flow chart powerpoint presentation slides ppt templatesFlow chart powerpoint presentation slides ppt templates
Flow chart powerpoint presentation slides ppt templates
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Deep C
Deep CDeep C
Deep C
 

Similar to Dev C++ Code Basic Loop

C++You will design a program to play a simplified version of war, .pdf
C++You will design a program to play a simplified version of war, .pdfC++You will design a program to play a simplified version of war, .pdf
C++You will design a program to play a simplified version of war, .pdfezzi97
 
this is what i have. i really need help on updating the scores only..pdf
this is what i have. i really need help on updating the scores only..pdfthis is what i have. i really need help on updating the scores only..pdf
this is what i have. i really need help on updating the scores only..pdfarjunstores123
 
CBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesCBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesMalathi Senthil
 
Game programming-help
Game programming-helpGame programming-help
Game programming-helpSteve Nash
 
ANS#include iostream int Rn_get(int low, int high); int cva.pdf
ANS#include iostream int Rn_get(int low, int high); int cva.pdfANS#include iostream int Rn_get(int low, int high); int cva.pdf
ANS#include iostream int Rn_get(int low, int high); int cva.pdfanikkothari1
 
Tic tac toe on c++ project
Tic tac toe on c++ projectTic tac toe on c++ project
Tic tac toe on c++ projectUtkarsh Aggarwal
 
Modificacion del programa
Modificacion del programaModificacion del programa
Modificacion del programaMario José
 
C++ L03-Control Structure
C++ L03-Control StructureC++ L03-Control Structure
C++ L03-Control StructureMohammad Shaker
 
Programa Sumar y Multiplicar
Programa Sumar y MultiplicarPrograma Sumar y Multiplicar
Programa Sumar y MultiplicarAnais Rodriguez
 

Similar to Dev C++ Code Basic Loop (20)

Algo
AlgoAlgo
Algo
 
Cpp c++ 1
Cpp c++ 1Cpp c++ 1
Cpp c++ 1
 
Rabia
RabiaRabia
Rabia
 
C++You will design a program to play a simplified version of war, .pdf
C++You will design a program to play a simplified version of war, .pdfC++You will design a program to play a simplified version of war, .pdf
C++You will design a program to play a simplified version of war, .pdf
 
this is what i have. i really need help on updating the scores only..pdf
this is what i have. i really need help on updating the scores only..pdfthis is what i have. i really need help on updating the scores only..pdf
this is what i have. i really need help on updating the scores only..pdf
 
Struct
StructStruct
Struct
 
oodp elab.pdf
oodp elab.pdfoodp elab.pdf
oodp elab.pdf
 
Cpp c++ 2
Cpp c++ 2Cpp c++ 2
Cpp c++ 2
 
CBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesCBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - Notes
 
Game programming-help
Game programming-helpGame programming-help
Game programming-help
 
Adventure time
Adventure timeAdventure time
Adventure time
 
ANS#include iostream int Rn_get(int low, int high); int cva.pdf
ANS#include iostream int Rn_get(int low, int high); int cva.pdfANS#include iostream int Rn_get(int low, int high); int cva.pdf
ANS#include iostream int Rn_get(int low, int high); int cva.pdf
 
Tic tac toe on c++ project
Tic tac toe on c++ projectTic tac toe on c++ project
Tic tac toe on c++ project
 
project3
project3project3
project3
 
Modificacion del programa
Modificacion del programaModificacion del programa
Modificacion del programa
 
C++ L03-Control Structure
C++ L03-Control StructureC++ L03-Control Structure
C++ L03-Control Structure
 
Project in programming
Project in programmingProject in programming
Project in programming
 
Programa Sumar y Multiplicar
Programa Sumar y MultiplicarPrograma Sumar y Multiplicar
Programa Sumar y Multiplicar
 
Ch4
Ch4Ch4
Ch4
 
Opp compile
Opp compileOpp compile
Opp compile
 

Recently uploaded

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 

Recently uploaded (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 

Dev C++ Code Basic Loop

  • 1. #include <iostream> #include <conio.h> using namespace std; int main() { int count=1; int scorex=0; int scorey=0; while(count<=5) { char x,y; cout<<"Shaila Entertainment"<<endl; cout<<"Presents"<<endl; cout<<"Rock, Paper, or Scissors?"<<endl; cout<<"INSTRUCTIONS: input r for rock, p for paper and s for scissors."<<endl; cout<<"Player 1's turn."<<endl; cin>>x; cout<<"Player 2's turn."<<endl; cin>>y; if((x=='r')&&(y=='p')) { cout<<"Player 2 wins!"<<endl; scorey=scorey++; cout<<"Player 1 : " ; cout<<scorex<<endl; cout<<"Player 2 : "; cout<<scorey<<endl; } else if((x=='r')&&(y=='s')) { cout<<"Player 1 wins!"<<endl; scorex=scorex++; cout<<"Player 1 : " ; cout<<scorex<<endl; cout<<"Player 2 : "; cout<<scorey<<endl; } else if((x=='p')&&(y=='r')) { cout<<"Player 1 wins!"<<endl; scorex=scorex++; cout<<"Player 1 : " ; cout<<scorex<<endl; cout<<"Player 2 : "; cout<<scorey<<endl; } else if((x=='p')&&(y=='s')) { cout<<"Player 2 wins!"<<endl; scorey=scorey++; cout<<"Player 1 : " ; cout<<scorex<<endl; cout<<"Player 2 : "; cout<<scorey<<endl; } else if((x=='s')&&(y=='r')) { cout<<"Player 2 wins!"<<endl; scorey=scorey++; cout<<"Player 1 : " ; cout<<scorex<<endl; cout<<"Player 2 : "; cout<<scorey<<endl;
  • 2. } else if((x=='s')&&(y=='p')) { cout<<"Player 1 wins!"<<endl; scorex=scorex++; cout<<"Player 1 : " ; cout<<scorex<<endl; cout<<"Player 2 : "; cout<<scorey<<endl; } else if(x=y) { cout<<"It's a DRAW!!!"<<endl; cout<<"Player 1 : " ; cout<<scorex<<endl; cout<<"Player 2 : "; cout<<scorey<<endl; } else { cout<<"Input Invalid"; } count++; } getch(); return 0; }