Submit Search
Upload
Dev C++ Code Basic Loop
•
Download as TXT, PDF
•
1 like
•
124 views
C
Chaela Alimpuangon
Follow
Rock, paper, scissor loop
Read less
Read more
Education
Report
Share
Report
Share
1 of 2
Download now
Recommended
The Ring programming language version 1.5.2 book - Part 52 of 181
The Ring programming language version 1.5.2 book - Part 52 of 181
Mahmoud Samir Fayed
Torneo baloncesto
Torneo baloncesto
IES Tias
New
New
Bilal Muhammad
Empowering End-users to Find Point-of-interests with a Public Display
Empowering End-users to Find Point-of-interests with a Public Display
Tetsuo Yamabe
New Tools for a More Functional C++
New Tools for a More Functional C++
Sumant Tambe
Key codes
Key codes
尚清 德川
Anadhikar-probesh-Robindranath_Thakur
Anadhikar-probesh-Robindranath_Thakur
bdkites
Readme
Readme
Ans Amro
Recommended
The Ring programming language version 1.5.2 book - Part 52 of 181
The Ring programming language version 1.5.2 book - Part 52 of 181
Mahmoud Samir Fayed
Torneo baloncesto
Torneo baloncesto
IES Tias
New
New
Bilal Muhammad
Empowering End-users to Find Point-of-interests with a Public Display
Empowering End-users to Find Point-of-interests with a Public Display
Tetsuo Yamabe
New Tools for a More Functional C++
New Tools for a More Functional C++
Sumant Tambe
Key codes
Key codes
尚清 德川
Anadhikar-probesh-Robindranath_Thakur
Anadhikar-probesh-Robindranath_Thakur
bdkites
Readme
Readme
Ans Amro
201707 CSE110 Lecture 13
201707 CSE110 Lecture 13
Javier Gonzalez-Sanchez
Bubble archery game(c program)
Bubble archery game(c program)
SETYA HADI
Video club consulta
Video club consulta
Ruth 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 181
Mahmoud Samir Fayed
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
Seok-joon Yun
Snake in the DOM!
Snake in the DOM!
Gil Steiner
Family Office White Paper: ETF Strategies
Family Office White Paper: ETF Strategies
Perlman Family Office
Replica Sets
Replica Sets
MongoDB
Save game function
Save game function
George Scott IV
The Ring programming language version 1.3 book - Part 41 of 88
The Ring programming language version 1.3 book - Part 41 of 88
Mahmoud Samir Fayed
C code
C code
UET Taxila
Storybird resource part_2
Storybird resource part_2
Eric Brace
watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話
Kohki Miki
PyCon2009_AI_Alt
PyCon2009_AI_Alt
Hiroshi Ono
hean ponreay
hean ponreay
Ponreay Hean
Writing ashram presentation-conference-presentation
Writing ashram presentation-conference-presentation
Schreib Ashram
Alphabet free-worksheets
Alphabet free-worksheets
haleypeterson
Loop control in c++
Loop control in c++
Debre Tabor University
C++ 11 range-based for loop
C++ 11 range-based for loop
mohamed sikander
C++loop statements
C++loop statements
Muhammad Uzair Rasheed
While loop
While loop
Feras_83
More Related Content
What's hot
201707 CSE110 Lecture 13
201707 CSE110 Lecture 13
Javier Gonzalez-Sanchez
Bubble archery game(c program)
Bubble archery game(c program)
SETYA HADI
Video club consulta
Video club consulta
Ruth 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 181
Mahmoud Samir Fayed
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
Seok-joon Yun
Snake in the DOM!
Snake in the DOM!
Gil Steiner
Family Office White Paper: ETF Strategies
Family Office White Paper: ETF Strategies
Perlman Family Office
Replica Sets
Replica Sets
MongoDB
Save game function
Save game function
George Scott IV
The Ring programming language version 1.3 book - Part 41 of 88
The Ring programming language version 1.3 book - Part 41 of 88
Mahmoud Samir Fayed
C code
C code
UET Taxila
Storybird resource part_2
Storybird resource part_2
Eric Brace
watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話
Kohki Miki
PyCon2009_AI_Alt
PyCon2009_AI_Alt
Hiroshi Ono
hean ponreay
hean ponreay
Ponreay Hean
Writing ashram presentation-conference-presentation
Writing ashram presentation-conference-presentation
Schreib Ashram
Alphabet free-worksheets
Alphabet free-worksheets
haleypeterson
What's hot
(18)
201707 CSE110 Lecture 13
201707 CSE110 Lecture 13
Bubble archery game(c program)
Bubble archery game(c program)
Video 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 181
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
Snake in the DOM!
Snake in the DOM!
Family Office White Paper: ETF Strategies
Family Office White Paper: ETF Strategies
Replica Sets
Replica Sets
Save 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 88
C code
C code
Storybird resource part_2
Storybird resource part_2
watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話
PyCon2009_AI_Alt
PyCon2009_AI_Alt
hean ponreay
hean ponreay
Writing ashram presentation-conference-presentation
Writing ashram presentation-conference-presentation
Alphabet free-worksheets
Alphabet free-worksheets
Viewers also liked
Loop control in c++
Loop control in c++
Debre Tabor University
C++ 11 range-based for loop
C++ 11 range-based for loop
mohamed sikander
C++loop statements
C++loop statements
Muhammad Uzair Rasheed
While loop
While loop
Feras_83
[C++]3 loop statement
[C++]3 loop statement
Junyoung Jung
Flow control in c++
Flow control in c++
Subhasis Nayak
Flow chart programming
Flow chart programming
Tearsome Llantada
Flow of Control
Flow of Control
Praveen M Jigajinni
Loops
Loops
Peter Andrews
Flow of control ppt
Flow of control ppt
Indraprastha Institute of Information Technology
Flow charts
Flow charts
Peter Andrews
Flow chart
Flow chart
Sapna Sharma
ppt of flowchart
ppt of flowchart
140120109032
Flow chart powerpoint presentation slides ppt templates
Flow chart powerpoint presentation slides ppt templates
SlideTeam.net
Algorithms and Flowcharts
Algorithms and Flowcharts
Deva Singh
Deep C
Deep C
Olve Maudal
Viewers also liked
(16)
Loop control in c++
Loop control in c++
C++ 11 range-based for loop
C++ 11 range-based for loop
C++loop statements
C++loop statements
While loop
While loop
[C++]3 loop statement
[C++]3 loop statement
Flow control in c++
Flow control in c++
Flow chart programming
Flow chart programming
Flow of Control
Flow of Control
Loops
Loops
Flow of control ppt
Flow of control ppt
Flow charts
Flow charts
Flow chart
Flow chart
ppt of flowchart
ppt of flowchart
Flow chart powerpoint presentation slides ppt templates
Flow chart powerpoint presentation slides ppt templates
Algorithms and Flowcharts
Algorithms and Flowcharts
Deep C
Deep C
Similar to Dev C++ Code Basic Loop
Algo
Algo
setiawanheru
Cpp c++ 1
Cpp c++ 1
Sltnalt Cosmology
Rabia
Rabia
university of Gujrat, pakistan
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, .pdf
ezzi97
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..pdf
arjunstores123
Struct
Struct
ichal48
oodp elab.pdf
oodp elab.pdf
SWATIKUMARIRA2111030
Cpp c++ 2
Cpp c++ 2
Sltnalt Cosmology
CBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - Notes
Malathi Senthil
Game programming-help
Game programming-help
Steve Nash
Adventure time
Adventure time
Teodor_Cristian
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.pdf
anikkothari1
Tic tac toe on c++ project
Tic tac toe on c++ project
Utkarsh Aggarwal
project3
project3
Russell Rawls
Modificacion del programa
Modificacion del programa
Mario José
C++ L03-Control Structure
C++ L03-Control Structure
Mohammad Shaker
Project in programming
Project in programming
sahashi11342091
Programa Sumar y Multiplicar
Programa Sumar y Multiplicar
Anais Rodriguez
Ch4
Ch4
aamirsahito
Opp compile
Opp compile
Muhammad Faiz
Similar to Dev C++ Code Basic Loop
(20)
Algo
Algo
Cpp c++ 1
Cpp c++ 1
Rabia
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, .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..pdf
Struct
Struct
oodp elab.pdf
oodp elab.pdf
Cpp c++ 2
Cpp c++ 2
CBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - Notes
Game programming-help
Game programming-help
Adventure 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.pdf
Tic tac toe on c++ project
Tic tac toe on c++ project
project3
project3
Modificacion del programa
Modificacion del programa
C++ L03-Control Structure
C++ L03-Control Structure
Project in programming
Project in programming
Programa Sumar y Multiplicar
Programa Sumar y Multiplicar
Ch4
Ch4
Opp 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 🔝✔️✔️
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
CapitolTechU
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
Sabitha Banu
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
unnathinaik
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
iammrhaywood
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Sarwono Sutikno, Dr.Eng.,CISA,CISSP,CISM,CSX-F
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
Celine George
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
Eyham Joco
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
Virag Sontakke
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
SamikshaHamane
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
GaneshChakor2
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
iammrhaywood
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
mkooblal
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
anshu789521
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
InMediaRes1
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.pptx
manuelaromero2013
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
socialsciencegdgrohi
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Celine George
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
pboyjonauth
Recently uploaded
(20)
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.pptx
DATA 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 developer
ECONOMIC 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.pdf
How 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.pptx
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
ECONOMIC 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 management
Presiding 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 Component
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.pptx
History 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 17
Introduction 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; }
Download now