Make a top-down approach to design your app in pseudo-code. Conversion into your language of choice is left as exercise.
function app()
{
forever
{
a = read_number
b = read_number
c = read_action
if (c == end) break
if (c == add) write(a "+" b "=" a+b)
if (c == sub) write(a "-" b "=" a-b)
if (c == mul) write(a "*" b "=" a*b)
if (c == div) write(a "/" b "=" a/b)
}
}
Regards
Andi