Description
反向输出1到100。数字之间用空格隔开。
Format
Input
无
Output
反向输出1到100。数字之间用空格隔开。
Samples
输入数据 1
本题没有输入
Copy
输出数据 1
100 99 98 .... 3 2 1
Copy
Limitation
1s, 1024KiB for each test case.
代码:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int a,b;
a=1;
b=101;
while(a<=100)
{
cout<<b-a<<" ";
a++;
}
}