A+B: Difference between revisions
Content added Content deleted
imported>Rowsety Moid No edit summary |
imported>PauliKL (→{{header|VBScript}}: Added Vedit macro language) |
||
Line 5,906: | Line 5,906: | ||
End With |
End With |
||
end if</syntaxhighlight> |
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}}== |
=={{header|Verilog}}== |