hi,
i have done up a program which requires the following:
1) prompts user input account no
2) prompts user input account type
2.1) if account type = a, prompts some input and does a certain formula [if]
2.2) if account type = b, prompts some input and does another formula [else if]
2.3) if account type is wrong(not a or b), prompts error and return to 2 [else]
3) prompts user input to exit [do while]
3.1) if input = y, exits
3.2) if input = n, return to 1
at the moment i'm pretty stuck at 2.3. it prompts the error and goes to 3 instead of returning to 2 to prompt user input.
where is the problem? the else?
been trying the whole day just for this qns.
pls advice and thanks!