Anonymous user
A+B: Difference between revisions
→{{header|VBScript}}: Added Vedit macro language
imported>Rowsety Moid No edit summary |
imported>PauliKL (→{{header|VBScript}}: Added Vedit macro language) |
||
Line 5,906:
End With
end if</syntaxhighlight>
=={{header|Vedit macro language}}==
This version implements the task as specified in the task description.
<syntaxhighlight lang="vedit">Get_Input(10, "Enter two integers separated by a space: ")
Buf_Switch(Buf_Free)
Reg_Ins(10)
BOF
#1 = Num_Eval(ADVANCE)
#2 = Num_Eval()
Num_Type(#1 + #2)
Buf_Quit(OK)</syntaxhighlight>
A simpler version that prompts for the two numbers separately:
<syntaxhighlight lang="vedit">#1 = Get_Num("Enter number A: ")
#2 = Get_Num("Enter number B: ")
Num_Type(#1 + #2)</syntaxhighlight>
=={{header|Verilog}}==
|