输入一个整数n, 计算1到n的和并以16进制输出
<br />.386DATA SEGMENT USE16 MASG0 DB 0AH, 0DH, '======INPUT THE N AND DISPLAY THE SUM FROM A TO N =======', 0DH, 0AH, '</p> MASG1 DB 'INPUT THE N: </p> MASG2 DB 'THE SUM IS: 0X</p> MASG3 DB 'H',0DH, 0AH, 'EXIT! </p> N DB ? SUM DW
原创
2011-05-05 22:41:00 ·
2060 阅读 ·
2 评论