reet kaur wrote:where is error in this program i can not compile this please send me the error location.
and write the accurate code
We don't really do that here. This is your program, so
you should fix it. We are happy to help you learn how to do it, but nobody here should. If they do, the moderators will most likely delete it.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors