diff --git a/main.cpp b/main.cpp index 47b917d..b294e71 100644 --- a/main.cpp +++ b/main.cpp @@ -14,10 +14,20 @@ int main(){ cout<< "Addition: "<< first << "+" << second << "="; cout<< (first+second) << endl; + cout<< "Subtraction: "<< first << "-" << second << "="; cout<< (first-second) << endl; + cout<< "Multiplication: "<< first << "*" << second << "="; cout<< (first*second) << endl; + if((first != 0) && (second != 0)){ + cout<< "Division: "<< first << "/" << second << "="; + cout<< (first/second) << endl; + } + else{ + cout << "Error: Either number can't be Zero, can't do Division." << endl; + } + return 0; -} \ No newline at end of file +}