From 17eb1528dfe683ea9400fff7dad8297a04149d9f Mon Sep 17 00:00:00 2001 From: Lizet Gutierrez Date: Wed, 11 Sep 2024 11:58:12 -0700 Subject: [PATCH 1/2] remove using std:: --- main.cpp | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/main.cpp b/main.cpp index 47b917d..0dd8641 100644 --- a/main.cpp +++ b/main.cpp @@ -1,23 +1,20 @@ #include -using std::cout; -using std::cin; -using std::endl; int main(){ double first, second; - cout<< "First number: "; - cin>> first; - cout<< "Second number: "; - cin>> second; + std::out<< "First number: "; + std::cin>> first; + std::cout<< "Second number: "; + std::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; + std::cout<< "Addition: "<< first << "+" << second << "="; + std::cout<< (first+second) << std::endl; + std::cout<< "Subtraction: "<< first << "-" << second << "="; + std::cout<< (first-second) << std::endl; + std::cout<< "Multiplication: "<< first << "*" << second << "="; + std::cout<< (first*second) << std::endl; return 0; -} \ No newline at end of file +} From 52032dc7e2d6a09d2991cef3ed6d64adc90b4269 Mon Sep 17 00:00:00 2001 From: Lizet Gutierrez Date: Wed, 11 Sep 2024 12:53:45 -0700 Subject: [PATCH 2/2] added comment --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 0dd8641..dd7b794 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,5 @@ #include - +//comment int main(){ double first, second;