文件名称:kang
介绍说明--下载内容均来自于网络,请自行研究使用
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