文件名称:kang
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:630byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
2、 从键盘输入两个个位数,相加,显示其和。
思路:
分别输入被加数和加数,得到相应的ASCII码,分别再减去30H,得到其真实的值,进行相加,得到的结果判断是否大于10,大于10则除以10,得到商(十位)和余数()(个位),再分别显示;如果小于10则直接显示。
-2, the two digits from the keyboard, add, show its and. Idea: each input summand and additives, the corresponding ASCII code, respectively, minus 30H, by its true value, were added together, the results obtained to determine whether the greater than 10, more than 10 divided by 10, the quotient (10) and remainder () (a bit), each with display if less than 10 direct display.
思路:
分别输入被加数和加数,得到相应的ASCII码,分别再减去30H,得到其真实的值,进行相加,得到的结果判断是否大于10,大于10则除以10,得到商(十位)和余数()(个位),再分别显示;如果小于10则直接显示。
-2, the two digits from the keyboard, add, show its and. Idea: each input summand and additives, the corresponding ASCII code, respectively, minus 30H, by its true value, were added together, the results obtained to determine whether the greater than 10, more than 10 divided by 10, the quotient (10) and remainder () (a bit), each with display if less than 10 direct display.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
kang.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.