输出全部10位数的c++代码
时间: 2024-05-14 21:16:50 浏览: 16
以下是输出全部10位数的c代码:
```c
#include <stdio.h>
int main() {
long long int i;
for (i = 1000000000; i < 10000000000; i++) {
printf("%lld\n", i);
}
return 0;
}
```
注意:由于10位数超过了long long int的最大值,因此需要从1000000000(也就是9位数)开始循环,循环到9999999999为止。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)