无脑打印。
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a >> b; if(a>=b){ cout << "Error" << endl; return 0; } for(int i=a+1;i<=b;i++){ if(i!=b){ cout << i << " "; } else{ cout << i << endl; } } return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:632 |
关于C语言变量位置的问题浏览:272 |
矩阵乘方 (C语言代码)浏览:1022 |
杨辉三角 (C语言代码)浏览:484 |
Pascal三角 (C语言代码)浏览:644 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:512 |
小O的乘积 (C++代码)浏览:749 |
整数分类 oj上总是wrong answer浏览:663 |
C语言程序设计教程(第三版)课后习题7.3 (C++代码)浏览:458 |
P1002 (Java代码)浏览:767 |