eolymp
bolt
Try our new interface for solving problems
Problems

Java ArithmeticException

published at 1/2/24, 9:14:28 pm

include <iostream>

using namespace std; int main() { int a,b; while(cin>>a>>b) { if(b==0) { cout<<"Division by zero"<<endl; continue; } int c=a/b; cout<<c<<endl; } }