include irvine32.inc
.386
.stack 4096
Exitprocess proto,dwExitcode:dword
.data
str1 byte "Enter the temprature in celcius :",0
str2 byte "Temprature in fahrenheit:",0
cel real4 ?
fer real4 ?
.code
main proc
mov edx,offset str1
call WriteString
call ReadInt
mov edx,offset str2
call WriteString
mov cel,eax;
mov edx,0;
mov ecx,5;
mov eax,9
mul cel
div ecx
add eax,32
mov fer,eax
call WriteInt
invoke Exitprocess,0
main endp
end main
No comments:
Post a Comment