double num1, num2, quotient;
cout
<< "Enter a number: ";
cin
>> num1;
cout << "Enter another number: ";
cin >> num2;
if (num2 == 0)
cout << "Division by zero is not possible.
\
n";
cout << "Please run the program again ";
cout << "and enter a number besides zero.
\
n";
else
quotient = num1 / num2;
cout << "The quotient of " << num1 <<
cout << " divided by " << num2 << " is ";
cout << quotient << endl;
ZG91YmxlIG51bTEsIG51bTIsIHF1b3RpZW50Owpjb3V0Cjw8ICJFbnRlciBhIG51bWJlcjogIjsKY2luCj4+IG51bTE7CmNvdXQgPDwgIkVudGVyIGFub3RoZXIgbnVtYmVyOiAiOwpjaW4gID4+IG51bTI7CmlmIChudW0yID09IDApCmNvdXQgPDwgIkRpdmlzaW9uIGJ5IHplcm8gaXMgbm90IHBvc3NpYmxlLgpcCm4iOwpjb3V0IDw8ICJQbGVhc2UgcnVuIHRoZSBwcm9ncmFtIGFnYWluICI7CmNvdXQgPDwgImFuZCBlbnRlciBhIG51bWJlciBiZXNpZGVzIHplcm8uClwKbiI7CmVsc2UKcXVvdGllbnQgPSBudW0xIC8gbnVtMjsKY291dCA8PCAiVGhlIHF1b3RpZW50IG9mICIgPDwgbnVtMSA8PCAKY291dCA8PCAiIGRpdmlkZWQgYnkgIiA8PCBudW0yIDw8ICIgaXMgIjsKY291dCA8PCBxdW90aWVudCA8PCBlbmRsOwo=
prog.c:3:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<<’ token
<< "Enter a number: ";
^~
prog.c:5:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘>>’ token
>> num1;
^~
prog.c:6:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<<’ token
cout << "Enter another number: ";
^~
prog.c:7:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘>>’ token
cin >> num2;
^~
prog.c:8:1: error: expected identifier or ‘(’ before ‘if’
if (num2 == 0)
^~
prog.c:9:9: warning: missing terminating " character
cout << "Division by zero is not possible.
^
prog.c:9:9: error: missing terminating " character
cout << "Division by zero is not possible.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:11:2: warning: missing terminating " character
n";
^
prog.c:11:2: error: missing terminating " character
n";
^~
prog.c:13:9: warning: missing terminating " character
cout << "and enter a number besides zero.
^
prog.c:13:9: error: missing terminating " character
cout << "and enter a number besides zero.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:13:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<<’ token
cout << "and enter a number besides zero.
^~
prog.c:15:2: warning: missing terminating " character
n";
^
prog.c:15:2: error: missing terminating " character
n";
^~
prog.c:18:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<<’ token
cout << "The quotient of " << num1 <<
^~
prog.c:20:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<<’ token
cout << quotient << endl;
^~