Wrong output-Not printing first character of my string

After changing the cin and cout with each other in the while loop, it is not printing 1st character of my string .Why is it so?

@mb129162 hey ,I am not getting what are you saying,share your code snippet please.

@mb129162 hey ,apne first character input lelia aur use print nhi kia ,fir then apne age ke characters input lia fir unhe print kia hai khali ,see the changes to print: