- 【例81.1】 计算(a+b)/c的值
这道题,阶段一的也能做,去试试,不要白不要
- 2024-6-24 19:54:45 @
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c;
cin>>a>>b>>c;
if( c==0)
{
cout<<"Division by zero condition"<<endl;
}
else
{
cout<<(a+b)/c;
}
return 0;
}
2 comments
-
win11 LV 3 @ 2024-7-14 21:24:38
你这么做有点像锑
-
2024-6-24 19:54:59@
头代码自己写
- 1
Information
- ID
- 389
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- # Submissions
- 23
- Accepted
- 13
- Uploaded By