H! plz solve a problem..............!
See I want to take continuous four input from the user, out of which three are character type and one is of int type. So my problem actually is that, it accepts only three input i.e. 2 char and one int & for remaining char it will keep blank.
I know why it is happening. Because if u have entered any char input & on next again char i/p is there then, it will take new line(\n) i/p which is present in the stack(by stream concept) by default without waiting to respond for i/p to be entered and goes for further execution.
But I want a solution on it. What can i do, if i want to take more than one char i/p from the user?:(
Eg: o/p will be like:
Enter Gender Male/Female(M/F): M
Enter Residence City/village(C/V): (it'll not wait here to take i/p & jumps on next line)
Enter Health Excellent/poor(E/P): E
Enter Age: 25
& because of this my further o/p will be wrong.
so, what can i do if i want to take i/p in this way only?