Submission
Status:
PPPP-PPPxx
Subtask/Task Score:
70/100
Score: 70
User: helloworld111
Problemset: เส้นทางคณิตศาสตร์
Language: cpp
Time: 0.002 second
Submitted On: 2026-05-02 13:22:45
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, z; cin >> x >> y >> z;
if(y==0) cout << "cannot divide by zero";
if(z==1) cout << x + y;
if(z==2) cout << x - y;
if(z==3) cout << x * y;
if(z==4) cout << x / y;
if(z==6) cout << x % y;
return 0;
}