#include <iostream> #include <cstdlib> #include <cmath> #include <deque> #include <algorithm> #include <numeric> #include <iterator> #include <sstream> #include <iomanip> #include <vector> #include <string.h> #include <string> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=n;i++) { if(n%i==0) { cout<<i<<" * "<<n/i<<" = "<<n<<endl; } } return 0; }
解题思路:
注意事项:
参考代码:
0.0分
0 人评分
川哥的吩咐 (C++代码)浏览:1016 |
大小写转换 (C语言代码)浏览:859 |
字符串的输入输出处理 (C语言代码)浏览:945 |
C语言程序设计教程(第三版)课后习题8.7 (C语言代码)浏览:916 |
三角形 (C语言代码)浏览:914 |
文科生的悲哀 (C语言代码)浏览:1401 |
DNA (C语言代码)浏览:741 |
GC的苦恼 (C语言代码)浏览:621 |
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)浏览:617 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:563 |