说明: 根据输入的字母进行大小写转换(若是输入小写字母则转换成为大写字母,反之),若输入的不是字母则提示出错并重新输入。
分别统计下列20个数中小于零、大于等于零且小于等于5、大于5的数据个数,分别存入字节单元RES1、RES2和RES3中。(BUF DB -1, 20, 3, 30, -5, 15, 100, -54, 0, 4, 78, 99, -12, 32, 3, 23, -7, 24, 60,-51)
从键盘输入两个2位十进制整数转换成组合BCD码后,把这两个数相加,结果以十进制形式显示在屏幕上。
编制一程序,从键盘输入两个长度不同的字符串,设字符串长度小于25个字符。要求在屏幕上以右边对齐的形式显示出来。(According to the input letters, make case conversion (if you input lowercase letters, it will be converted to uppercase letters, otherwise), if you do not input letters, you will be prompted with an error and re input.
Count the number of data less than zero, greater than or equal to zero, less than or equal to 5 and greater than 5 in the following 20 numbers respectively, and store them in byte units res1, res2 and res3 respectively.
After inputting two 2-digit decimal integers from the keyboard and converting them into combined BCD code, the two numbers are added and the result is displayed on the screen in decimal form.
Write a program, input two strings of different length from the keyboard, and set the string length to be less than 25 characters. It is required to be displayed on the screen in the form of right alignment.)