'commit'
This commit is contained in:
23
C++课程/第九课2016年奥赛初赛试题解析/p67_2.cpp
Normal file
23
C++课程/第九课2016年奥赛初赛试题解析/p67_2.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int a,b,c=0,d=0;
|
||||
cout<<"a,b=";
|
||||
cin>>a>>b;
|
||||
if(a>b)
|
||||
|
||||
//<2F><>һ<EFBFBD><D2BB>
|
||||
// {
|
||||
// c=a/b;
|
||||
// d=a%b;
|
||||
// }
|
||||
|
||||
//<2F>ڶ<EFBFBD><DAB6><EFBFBD>
|
||||
c=a/b;
|
||||
d=a%b;
|
||||
|
||||
cout<<c+d;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user