C语言-百位数倒叙

练习题:输入一个三位的数字将这个数字倒过来输出

例:输入123输出321

#include <stdio.h>
main(){
int x,g,s,b,d;
scanf("%d",&x);
g=x%10;
s=x/10%10;
b=x/100;
printf("%d%d%d",g,s,b);
}

举一反三

C语言-百位数倒叙

给TA打赏
共{{data.count}}人
人已打赏
C语言

C语言-计算银行存款利息

2021-10-14 17:37:48

C语言课堂笔记

C语言-输出被3或5整除的数字

2021-10-22 9:30:36

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索

Warning: error_log(/www/wwwroot/www.wenlk.com/wp-content/plugins/spider-analyser/#log/log-0720.txt): failed to open stream: No such file or directory in /www/wwwroot/www.wenlk.com/wp-content/plugins/spider-analyser/spider.class.php on line 2900