1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <iostream> /* * * 5.24 * * */ int main () { int a = 0; int b = 0; std::cin >> a >> b; if(b == 0) { throw std::runtime_error("You cannot divide by 0!"); } std::cout << a / b << std::endl; return 0; }