From a86da4e539c2a8c7a6fb7d0846d877c24e345602 Mon Sep 17 00:00:00 2001 From: kangoroo115 <31855523+kangoroo115@users.noreply.github.com> Date: Thu, 12 Oct 2017 10:44:49 -0500 Subject: [PATCH] Assignment 4 - Tommy Pham Prints out "The # is ascending/descending/neither. --- Program Problem 3/Program Problem 3/Problem3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Program Problem 3/Program Problem 3/Problem3.cpp b/Program Problem 3/Program Problem 3/Problem3.cpp index 08b01ac..5050445 100644 --- a/Program Problem 3/Program Problem 3/Problem3.cpp +++ b/Program Problem 3/Program Problem 3/Problem3.cpp @@ -51,18 +51,18 @@ void main() { A = (x / 100); if (A > B && B > C) { - cout << "Descending" << endl; + cout << "The number " << A << B << C << " is Descending" << endl; } else if (C > B && B > A) { - cout << "Ascending" << endl; + cout << "The number " << A << B << C << " is Ascending" << endl; } else { - cout << "Neither" << endl; + cout << "The number " << A << B << C << " is Neither" << endl; } pause(); // pauses to see the displayed text -} \ No newline at end of file +}