Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions Project4/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@ void pause() {
//MAIN
void main() {
int x;
cout << "Choose a three digit number." << endl;
cin >> x;
cout << "Nice Choice Loser" << endl;
int A = x / 100 ;
int B = x % 100 / 10 ;
int C = x % 10 ;


for (int i = 1; i<=30; i++) {


cout << "Choose a three digit number." << endl; //By looping the program, it makes the program more usful because it can be used more than once
cin >> x;
cout << "Nice Choice Loser" << endl; //uummmmmmm may wanna be nicer to your user "nice choice loser" is kiiiinnnnda mean LOL
int A = x / 100 ;
int B = x % 100 / 10 ;
int C = x % 10 ;


//program is good from this point, once the loop is added then its good.

if ((A > B) && ( B > C)) {
cout << "descending" << endl;
}
Expand All @@ -35,4 +42,4 @@ void main() {
cout << "neither" << endl;
}
pause();
}
}