I wrote an invoice class code but I seem to have some problem with the if statement of which the conditions are false but they are still executed.
Can someone please tell me what I did wrong ?
The quantity entered is invalid,so 0 is stroed as a default value
The price entered is invalid,so 0 is stored as a default value
The invoice amount is: 20
I don't understand why those first two line are printed???
NB:I know I could use "else" but according to the book am studying,.am supposed to use "if"