Start
Declare variables: number1,number2,result
Read number1 from the textbox
Read number2 from the textbox
If button "add" is click then
if number1 is correct and number1 is correct then
result = number1 + number2
Display result in label
Change the font color to yellow
else
Display message: "value must be numeri and >0"
end if
end if
If button "Multiply" is click then
if number1 is correct and number1 is correct then
result = number1 * number2
Display result in label
Change the font color to yellow
else
Display message: "value must be numeri and >0"
end if
end if
If button "Reset" is click then
Reset all textboxes and label
Change the font color
end if
Stop
Comments
Leave a comment