当前位置:网站首页>Number of printouts (solved by recursive method)
Number of printouts (solved by recursive method)
2022-06-27 13:29:00 【fitpolo】

#include <stdio.h>
void print_out(unsigned int n)
{
if ( n >= 10)
{
printf("-%01d\r\n",n/10);
print_out(n/10);
}
printf("%01d",n%10);
}
int main(int argc, char *argv[])
{
printf("Hello C-Free!\n");
print_out(12345);
printf("\n");
return 0;
}
The operation results are as follows :
边栏推荐
猜你喜欢

深入理解位运算
Kotlin函数使用示例教程

昨天访问量破记录

Hardware development notes (VII): basic process of hardware development, making a USB to RS232 module (VI): creating 0603 package and associating principle graphic devices

外包2年的我终于上岸了!记录我的字节跳动3轮面试,希望帮助到大家!
![[weekly replay] the 81st biweekly match of leetcode](/img/66/03ee4dbb88b0be7486b71cd4059f44.png)
[weekly replay] the 81st biweekly match of leetcode

ThreadLocal 源码全详解(ThreadLocalMap)

Full explanation of ThreadLocal source code (threadlocalmap)

Tiktok practice ~ public / private short video interchange

打印输出数(递归方法解决)
随机推荐
动态规划
ViewPager2使用记录
Crane: a new way of dealing with dictionary items and associated data
Does Xinhua San still have to rely on ICT to realize its 100 billion enterprise dream?
【TcaplusDB知识库】TcaplusDB-tcapulogmgr工具介绍(一)
[day 27] given an integer n, print out the full permutation from 1 to n | Full Permutation template
Quick news: Huawei launched the Hongmeng developer competition; Tencent conference released the "Wanshi Ruyi" plan
[weekly replay] the 81st biweekly match of leetcode
如何使用200行代码实现Scala的对象转换器
JSON.stringify用法
With the advent of the era of Internet of everything, Ruijie released a scenario based wireless zero roaming scheme
How to choose LAN instant messaging software
Firewall foundation Huawei H3C firewall web page login
Deeply convinced plan X - system foundation summary
【第27天】给定一个整数 n ,打印出1到n的全排列 | 全排列模板
一道shell脚本的统计题
万物互联时代到来,锐捷发布场景化无线零漫游方案
【周赛复盘】LeetCode第81场双周赛
每日刷题记录 (六)
夏日里的清凉