A+B: Difference between revisions

133 bytes added ,  7 months ago
imported>PauliKL
(→‎{{header|VBScript}}: Added Vedit macro language)
imported>PauliKL
Line 5,909:
=={{header|Vedit macro language}}==
This version implements the task as specified in the task description.
<syntaxhighlight lang="vedit">Get_Input(10,// "EnterInput two integersvalues separatedon bysingle aline space:in ")text format
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)
 
Buf_Quit(OK)</syntaxhighlight>
// Calculate and display the results
Num_Type(#1 + #2)</syntaxhighlight>
 
A simpler version that prompts for the two numbers separately:
Anonymous user