Compare commits

...

2 Commits

Author SHA1 Message Date
10-4 c3f6e61e67 Merge branch 'master' of http://git.sairate.fun/zhouruize/c_code.git 2024-07-17 15:05:15 +08:00
10-4 536db94219 Signed-off-by: 10-4 <10-4@sairate.fun> 2024-07-17 15:03:50 +08:00
7 changed files with 24 additions and 0 deletions

8
三位数交换.cpp Normal file
View File

@ -0,0 +1,8 @@
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
cout<<(n%10)<<(n/10%10)<<(n/100);
return 0;
}

BIN
三位数交换.exe Normal file

Binary file not shown.

8
两位数交换 .cpp Normal file
View File

@ -0,0 +1,8 @@
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
cout<<(n%10)+(n/10%10)+(n/100);
return 0;
}

BIN
两位数交换 .exe Normal file

Binary file not shown.

8
小杨买书.cpp Normal file
View File

@ -0,0 +1,8 @@
#include<iostream>
using namespace std;
int main(){
int m;
cin>>m;
cout<<m/13<<" "<<m%13;
return 0;
}

BIN
小杨买书.exe Normal file

Binary file not shown.

0
王只因.txt Normal file
View File