当前位置:网站首页>Zzuli:1060 numbers in reverse order
Zzuli:1060 numbers in reverse order
2022-07-02 05:29:00 【Don't explode】
Title Description
Enter a positive integer , Output it in reverse order , There is a space after each number .
Input
Enter a positive integer n, You can assume n stay int Within the scope of
Output
take n Output in reverse order , There is a space after each number , Output takes up one line . for example , Input 12354, Output 4 5 3 2 1
The sample input Copy
12354
Sample output Copy
4 5 3 2 1
Tips
Integers n Yes 10 Take a module to get a number on a bit , And using the characteristic that integer quotient is integer , Integers n Divide 10 My business is just right “ Throw away ” A digit number
#include <stdio.h>
int main()
{
int i;
int n;
scanf("%d",&n);
int num;
for(i=0;;i++)
{
num=n%10;
n/=10;
printf("%d ",num);
if(n<1)
break;
}
return 0;
}边栏推荐
- 延时队列两种实现方式
- Fabric.js 激活输入框
- Ubuntu 20.04 installing mysql8
- Gee series: unit 7 remote sensing image classification using GEE [random forest classification]
- Simply encapsulate JS and apply it
- Gee: explore the characteristics of precipitation change in the Yellow River Basin in the past 10 years [pixel by pixel analysis]
- kmp思想及模板代码
- 460. LFU cache bidirectional linked list
- Innovation never stops -- the innovation process of nvisual network visualization platform for Excel import
- Fabric. JS compact JSON
猜你喜欢

【pyinstaller】_ get_ sysconfigdata_ name() missing 1 required positional argument: ‘check_ exists‘

LS1046nfs挂载文件系统

Online music player app

Fabric. JS compact JSON
![Gee: use of common mask functions in remote sensing image processing [updatemask]](/img/55/bf4ef5fc923242e72caab71f1a4e4b.jpg)
Gee: use of common mask functions in remote sensing image processing [updatemask]
![Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]](/img/1e/cf0aa09c2fce2278386f12eae4a6cd.jpg)
Gee series: Unit 5 remote sensing image preprocessing [GEE grid preprocessing]
![Gee series: unit 8 time series analysis in Google Earth engine [time series]](/img/a6/648ff959af93c22dc8605215a90535.jpg)
Gee series: unit 8 time series analysis in Google Earth engine [time series]

idea開發工具常用的插件合集匯總

Fabric. JS centered element

Visual studio import
随机推荐
ubuntu20.04安装mysql8
Generate QR code
Creation and destruction of function stack frames
Résumé de la collection de plug - ins couramment utilisée dans les outils de développement idea
【pyinstaller】_ get_ sysconfigdata_ name() missing 1 required positional argument: ‘check_ exists‘
7.1 simulation summary
青训营--数据库实操项目
Black Horse Notes - - set Series Collection
Online English teaching app open source platform (customized)
Importation de studio visuel
Gee: remote sensing image composite and mosaic
生成二维码
Pyechart1.19 national air quality exhibition
Win10 copy files, save files... All need administrator permission, solution
Global and Chinese market of commercial fish tanks 2022-2028: Research Report on technology, participants, trends, market size and share
idea開發工具常用的插件合集匯總
Using Kube bench and Kube hunter to evaluate the risk of kubernetes cluster
paddle: ValueError:quality setting only supported for ‘jpeg‘ compression
Fabric. JS gradient
Fabric.js 背景不受视口变换影响