in this program i try to make it similar as TEST if i write the right answer it will say RIGHT if my answer is wrong tell me that's wrong.
The program's written in C, the problem is that i get "wrong answer try again "
but it should work.
I am yet a very novice programmer (let alone C++ programmer) but would I be wrong to say that line no. 26 would be a stand-alone statement and is not attatched to the if... else... statement? Perhaps this is always setting 'rigi' to '0', regardless of preceeding assignments?
I am yet a very novice programmer (let alone C++ programmer) but would I be wrong to say that line no. 26 would be a stand-alone statement and is not attatched to the if... else... statement?
Yes, you would be wrong to say that. C++ ignores the whitespace between the else at the end of line 24 and the { on line 26.