diff --git a/三位数交换.cpp b/三位数交换.cpp new file mode 100644 index 0000000..a123861 --- /dev/null +++ b/三位数交换.cpp @@ -0,0 +1,8 @@ +#include +using namespace std; +int main(){ + int n; + cin>>n; + cout<<(n%10)<<(n/10%10)<<(n/100); + return 0; +} diff --git a/三位数交换.exe b/三位数交换.exe new file mode 100644 index 0000000..1d8cd01 Binary files /dev/null and b/三位数交换.exe differ diff --git a/两位数交换 .cpp b/两位数交换 .cpp new file mode 100644 index 0000000..69c75aa --- /dev/null +++ b/两位数交换 .cpp @@ -0,0 +1,8 @@ +#include +using namespace std; +int main(){ + int n; + cin>>n; + cout<<(n%10)+(n/10%10)+(n/100); + return 0; +} diff --git a/两位数交换 .exe b/两位数交换 .exe new file mode 100644 index 0000000..85a2c90 Binary files /dev/null and b/两位数交换 .exe differ diff --git a/小杨买书.cpp b/小杨买书.cpp new file mode 100644 index 0000000..22d6282 --- /dev/null +++ b/小杨买书.cpp @@ -0,0 +1,8 @@ +#include +using namespace std; +int main(){ + int m; + cin>>m; + cout<