From b08143fd5233d40febbb5efd2a8351d2a4e7ea01 Mon Sep 17 00:00:00 2001 From: Taylor Hudson Date: Tue, 10 Oct 2017 08:25:56 -0500 Subject: [PATCH] Added Updates and Created Comments - Taylor Hudson Oct 10 2017 --- Project3/Project3/Source.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Project3/Project3/Source.cpp b/Project3/Project3/Source.cpp index ae7f746..9e51ecb 100644 --- a/Project3/Project3/Source.cpp +++ b/Project3/Project3/Source.cpp @@ -16,7 +16,7 @@ Three Digit Ascend Descend Selection // Namespaces using namespace std; -//variables +//variables defined globally int x; int A; int B; @@ -39,7 +39,7 @@ void main() { cout << "Enter a three digit number. \n"; cin >> x; -A = (x / 100); +A = (x / 100); // A gets digit in the hundreths place B = (x - A * 100) / 10; C = (x - A * 100 - (B * 10)); @@ -53,4 +53,4 @@ C = (x - A * 100 - (B * 10)); cout << "Neither \n"; } pause(); // pauses to see the displayed text -} \ No newline at end of file +}