热门

最新

红包

立Flag

投票

同城

我的

发布
m0_48990585
编程大佬养成空间
3 年前
truem0_48990585

来个我看不懂的makefile
http://t.csdn.cn/jQN5A

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
For循环语句的使用连续输出26个字母代码:#include <iostream>using namespace std;int main(){ int i; for( i=0;i<26;i++) { cout<<char('a'+i);} return 0; }for循环的嵌套给定正整数m和n,在1至n中取两个不同的数使得和是m的因子,问有多少种不同的取法#include <iostream>using namespace std;int main(){ int m=10,n=10,total=0; for(int i=0;i<n-1;i++) { for(int j=i+1;j<n;j++) { if(m%(i+j)==0) total++; } } cout<<total; return 0;}
立即登录