INCLUDE Irvine32.inc .data inputPrompt1 BYTE "Please enter your name: ", 0 inputPrompt2 BYTE "Enter your birth year: ", 0 outputPrompt1 BYTE "The name you entered is: ", 0 outputPrompt2 BYTE "Your age in years is:" nameInput db 60 DUP(0) .code main PROC call Clrscr mov edx, OFFSET inputPrompt1 call WriteString mov edx, OFFSET nameInput mov ecx, SIZE nameInput -1 call ReadInt mov edx, OFFSET outputPrompt1 Call WriteString call Crlf call WriteInt call Crlf mov edx, OFFSET inputPrompt2 call WriteString call ReadInt mov edx, OFFSET outputPrompt2 Call WriteString call Crlf call WriteInt call Crlf main ENDP END main
ReadInt
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)