format pe console entry start include 'win32ax.inc' section '.import' import data readable library msvcrt, 'msvcrt.dll' import msvcrt,\ printf, 'printf',\ scanf, 'scanf',\ system, 'system' section '.data' data readable writeable format_in db '%d', 0 format_out db '%d', 13, 10, 0 n dd ? section '.code' code readable writeable executable start: cinvoke scanf, format_in, n mov eax, [n] add eax, 10 sub edx, edx mov ecx, 5 idiv ecx cinvoke printf, format_out, eax cinvoke system, 'pause' ret