From 62a9bea19ff04dd1d7faf634ccdbb942327af867 Mon Sep 17 00:00:00 2001 From: Nikola Rakocevic Date: Wed, 11 Sep 2024 12:14:49 -0700 Subject: [PATCH] Tweaked << statements for consistent spacing --- main.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/main.cpp b/main.cpp index 47b917d..8b57c3f 100644 --- a/main.cpp +++ b/main.cpp @@ -7,17 +7,17 @@ using std::endl; int main(){ double first, second; - cout<< "First number: "; - cin>> first; - cout<< "Second number: "; - cin>> second; + cout << "First number: "; + cin >> first; + cout << "Second number: "; + cin >> second; - cout<< "Addition: "<< first << "+" << second << "="; - cout<< (first+second) << endl; - cout<< "Subtraction: "<< first << "-" << second << "="; - cout<< (first-second) << endl; - cout<< "Multiplication: "<< first << "*" << second << "="; - cout<< (first*second) << endl; + cout << "Addition: " << first << "+" << second << "="; + cout << (first+second) << endl; + cout << "Subtraction: " << first << "-" << second << "="; + cout << (first-second) << endl; + cout << "Multiplication: " << first << "*" << second << "="; + cout << (first*second) << endl; return 0; -} \ No newline at end of file +}