diff --git a/Noosrat_Rahman_and_Tailea_Nguyen_ThreeDigitAscendingDescendingSelection/Project1/Source.cpp b/Noosrat_Rahman_and_Tailea_Nguyen_ThreeDigitAscendingDescendingSelection/Project1/Source.cpp index eb7a7da..963b0b7 100644 --- a/Noosrat_Rahman_and_Tailea_Nguyen_ThreeDigitAscendingDescendingSelection/Project1/Source.cpp +++ b/Noosrat_Rahman_and_Tailea_Nguyen_ThreeDigitAscendingDescendingSelection/Project1/Source.cpp @@ -17,12 +17,13 @@ void pause() { void main() { int x, a, b, c; +for (int i=0 ; i<30; i++) { cout << " Give me a three digit number." << "\n"; cin >> x; a = (x / 100); b = (x % 100) / 10; c = (x % 10); - + //number is divided if (a > b && b > c) { cout << " Descending "; } @@ -33,7 +34,7 @@ void main() { else { cout << "Neither"; } - +}