If you just want to keep outputting a+b you could use an infinite loop. something along the lines of
while(true)
{
// code here
}
I have to ask why you want to do this?
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189
So in your example a and b are both 10. You add them together and you get 20. Now you want to set a and b to 20 and do it again?
NathanOliver
Veteran Poster
1,084 posts since Apr 2009
Reputation Points: 215
Solved Threads: 189