aman bisht wrote:I compiled it but didn't understand what's the problem ...so please tell me...what's the problem
...in this code
Again, please tell us what was the error message from the compiler? And what do you think the issue is? It is okay that you don't know, but
you should at least show us the error, and an attempt at what the error is.
Without knowing your thinking, we can't give you any hints, since we don't have a clue what is confusing you.
Henry