From e5d28b3add2e3d1b2e34bfdb54dfe51a5b1dec25 Mon Sep 17 00:00:00 2001 From: priya15497 <31855696+priya15497@users.noreply.github.com> Date: Thu, 12 Oct 2017 10:05:41 -0500 Subject: [PATCH] Priya Ramanathan- Assignment 4 --- .../Project1/Source.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"; } - +}