sir no output is coming for my code
Ultra-fast mathematician
Hi @Megha2468,
in your for loop, instead of using return 0 and return 1, use cout<<0 and cout<<1.
I think dis will resolve ur doubt.
If u still feel like stuck anywhere, feel free to post ur doubt here
sir still facing same problem
Hi @Megha2468,
pls refer to this updated code. I have made some minor changes. Instead of using char array, try using strings.
if u use getline , even if u press an enter, it is also counted as an input string.
So, inorder to make thing easier, use strings.
If u feel like anything is not clear, pls feel free to post ur doubt.