Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ using std::cin;
using std::endl;

int main(){
// creating inputs
double first, second;

// printing statements to alert the user to enter inputs
cout<< "First number: ";
cin>> first;
cout<< "Second number: ";
cin>> second;

// printing results of operations
cout<< "Addition: "<< first << "+" << second << "=";
cout<< (first+second) << endl;
cout<< "Subtraction: "<< first << "-" << second << "=";
Expand All @@ -20,4 +23,4 @@ int main(){
cout<< (first*second) << endl;

return 0;
}
}