当前位置:网站首页>Recursive call to print every bit of an integer
Recursive call to print every bit of an integer
2022-07-25 08:26:00 【p29949】
#include<stdio.h>
//void dayin( int k)
//{
// if (k < 10)
// printf("%d ", k);
// else
// { dayin(k / 10);
// printf("%d ", k%10);
//}
void dayin(int k)
{
if (k > 9)
{
dayin( k / 10);
}
printf("%d ", k%10);
}
int main()
{
int i=0;
scanf("%d", &i);
dayin(i);
return 0;
}
边栏推荐
- 475-82(230、43、78、79、213、198、1143)
- Idea reads configuration files such as validationmessages.properties Chinese garbled
- Learn when playing No 4 | can you take an online exam in programming? Right here →
- Learn when playing No 1 | can live classroom still be like this? Come and unlock "new posture"!
- 【黑马程序员】Redis学习笔记003:Redis事务
- Sun Tzu's art of war
- Teach you to understand the computer optometry sheet
- Learn when playing No 3 | are enterprise learning resources wasted? Learn map one trick to solve!
- Can Flink's current capabilities support the synchronization of a table from source (MySQL) to sink (MySQL) to separate databases and tables
- ArcGIS Pro scripting tool (10) -- generate.Stylx style symbols from layers
猜你喜欢

Chapter 3 business function development (realize the real-time response of the select all button)

Chapter 3 business function development (modifying clues, data echo and modifying data)

A simple hotel background management system based on jsp+servlet+mysql

递归调用实现打印一个整数的每一位

016 fundamentals of machine learning mathematics: Introduction

Blue and white porcelain used by Charles
![[dark horse programmer] redis learning notes 004: master-slave replication + sentinel mode + cluster](/img/d8/74cc67240719867cdeceab2cda533f.png)
[dark horse programmer] redis learning notes 004: master-slave replication + sentinel mode + cluster

Test the mock data method of knowing and knowing

Advanced C language (11) - user defined data types

A powerful port scanning tool (nmap)
随机推荐
Machine learning theory and case analysis (Part1) -- Fundamentals of machine learning
[dark horse programmer] redis learning notes 002: persistence: RDB and AOF
efcore在Saas系统下多租户零脚本分表分库读写分离解决方案
Eureka forced offline service
ArcGIS Pro scripting tool (10) -- generate.Stylx style symbols from layers
Rk3399 development board i2c4 attaching EEPROM instance
Hash table questions (Part 1)
Idea starts the project slowly
016 fundamentals of machine learning mathematics: Introduction
Chapter 3 business function development (query clues)
Teach you to understand the computer optometry sheet
@Autowired的使用
Implementation of depth first and breadth first traversal of binary tree
TCGA simple download tool V16 installation error
Refreshing mobile terminal personal center page
【黑马程序员】Redis学习笔记003:Redis事务
Common commands of raspberry pie
聊下自己转型测试开发的历程
Pricing is arbitrary, products are difficult to distinguish between true and false, and platforms are running away. Will the Tibetan market continue to be popular?
牛客动态规划训练