diff --git a/main.cpp b/main.cpp index 47b917d..8157182 100644 --- a/main.cpp +++ b/main.cpp @@ -18,6 +18,11 @@ int main(){ cout<< (first-second) << endl; cout<< "Multiplication: "<< first << "*" << second << "="; cout<< (first*second) << endl; - + if (second != 0) { + cout<< "Division: "<< first << "/" << second << "="; + cout<< (first/second) << endl; + } else { + cout<< "Division: Error - cannot divide by zero!" << endl; + } return 0; -} \ No newline at end of file +}