ex1:
Using a do while loop , write a calculator program that reads an arithmetic such as
12+34-2+65-21=
from the user and gives you the result when it reads the equal sign.The expression can contain any number of integers and not just five as in the above example .The
only arithmetic operators used are +,-,and = .
(no strings, no arrays..) that's what they want
for suggestion comments send ok

just create two integers x , y, one char z, and put two condition( if else condition for the char inputted by the user i mean the + , -) inside the "do while" loop, each time the user enters a number the loop add it or subtract it depending on the user request by selecting the sign he wants.