当前位置:网站首页>Input a number and output each digit from high to low
Input a number and output each digit from high to low
2022-06-13 05:18:00 【Python's path to becoming a God】
#include<stdio.h>
int main()
{
int n,count=0;
scanf("%d",&n);
int i=n;
while(n!=0)
{
n=n/10;
count++;
}
int a[count];
for(int m=1;m<=count;m++)
{
a[count-m]=i%10;
i=i/10;
}
for(int x=0;x<count;x++)
{
printf("%d\n",a[x]);
}
}
边栏推荐
猜你喜欢

Simple-SR:Best-Buddy GANs for Highly Detailed Image Super-Resolution论文浅析

QT interface rendering style

QT direction key to move focus

MySQL installation, architecture and management

Case - random numbers without repetition (HashSet and TreeSet)

File descriptorfile description

使用EasyDarwin+FFmpeg实现rtsp推流

Listiterator list iterator

Simple-SR:Best-Buddy GANs for Highly Detailed Image Super-Resolution論文淺析

Sort (internal sort) + external sort
随机推荐
External sort
Article 29: assuming that the mobile operation does not exist, is expensive, and is not used
Clause 32: moving objects into closures using initialization capture objects
Case - random numbers without repetition (HashSet and TreeSet)
Simple greedy strategy
Luogu p1088 Martians
Simple SR: best buddy Gans for highly detailed image super resolution
Dup2 use
Case - traversing the directory (file class & recursive call)
QT brushes and brushes
Understanding of speech signal framing
C language learning log 1.24
QT interface rendering style
System file interface open
【多线程编程】Future接口获取线程执行结果数据
Nonstandard compiler attribute extension
Std:: Map empty example
Violence enumeration~
Clause 30: be familiar with the failure of perfect forwarding
C language learning log 10.10