Anonymous user
A+B: Difference between revisions
→{{header|Vedit macro language}}: Added comments.
imported>PauliKL (→{{header|VBScript}}: Added Vedit macro language) |
imported>PauliKL (→{{header|Vedit macro language}}: Added comments.) |
||
Line 5,909:
=={{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: ")
// Extract two numeric values from the text
Buf_Switch(Buf_Free)
Reg_Ins(10)
Line 5,915 ⟶ 5,918:
#1 = Num_Eval(ADVANCE)
#2 = Num_Eval()
Buf_Quit(OK)
Num_Type(#1 + #2)▼
// Calculate and display the results
▲Num_Type(#1 + #2)</syntaxhighlight>
A simpler version that prompts for the two numbers separately:
|