RosettaCodeData/Task/A+B/Vedit-macro-language/a+b-1.vedit
2023-12-16 21:33:55 -08:00

13 lines
299 B
Text

// Input two values on single line 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)
BOF
#1 = Num_Eval(ADVANCE)
#2 = Num_Eval()
Buf_Quit(OK)
// Calculate and display the results
Num_Type(#1 + #2)