scanf("%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
You should have another %d
there. Otherwise f
contains a garbage value and it’ll be never equals a
.
I recommend you to reconsider your code and write something more general, like reading a string instead of individual int
s.
3
solved Palidrome program is not workig [closed]