当前位置:网站首页>Classic example of C language - print the input two digits in reverse order
Classic example of C language - print the input two digits in reverse order
2022-07-24 00:25:00 【Blue_ lan18】
There is no need to take the remainder , Instead, the user enters a number and saves it , Last reverse printing .
# include <stdio.h>
int main()
{
int i, j;
printf("Enter a two-digit number: ");
scanf("%1d%1d", &i, &j);
printf("The reversal is: %d%d\n", j, i);
return 0;
}
边栏推荐
- Blog expression Encyclopedia
- 数仓数据标准详解-2022
- Gbase 8C system table information function (III)
- Educational Codeforces Round 132 (Rated for Div. 2)(A-D)
- GBase 8c 访问权限访问函数(四)
- [wechat applet] design and interactive implementation of auction product details page (including countdown and real-time update of bids)
- Implementation of singleton mode in C #
- The prediction of domestic AI protein structure reproduced a breakthrough and solved the 3D structure with a single sequence. Peng Jian's team: "the last piece of puzzle since alphafold2 has been comp
- Reverse linked list drawing demonstration
- Multi data source configuration of mongodb
猜你喜欢

Implementation of singleton mode in C #

Flutter | the easiest way to add header and footer to listview

腾讯将关闭“幻核”,数字藏品领域发展是否面临阻力?

paypal订阅流程及api请求

PayPal subscription process and API request

Customize an object

English grammar_ Demonstrative pronoun -such / the same

Don't let Fujin Yibo see this

Distributed cap principle

The universal esp32c3 configures partition tables based on the Arduino ide framework
随机推荐
Gbase 8C binary string operator
Redis数据结构
Pytest interface automation test framework | control test case execution
Redis data structure
docker 拉取redis镜像 并运行
Try new methods
Difference between data index and label system of data warehouse
蓝绿部署、金丝雀发布、A/B测试是什么
[low code] limitations of low code development
inode、软链接、硬链接
MySQL client to server character set conversion
Blockbuster | certik: Web3.0 industry safety report release in the second quarter of 2022 (PDF download link attached)
Flutter | specifies the type of page return value
The universal esp32c3 configures partition tables based on the Arduino ide framework
Customize an object
Multi knapsack explanation of dynamic programming knapsack problem
Pytest interface automated testing framework | common running parameters of pytest
【Android Kotlin】Property、Getter 和 Setter
Gbase 8C bit string operator (I)
GBase 8c 二进制字符串操作符