why did we used cin.get over there ?
Use of cin.get()
@Saumya123456789
after cin>>n, cin has till the value of n.
Then Actually cin start reading from the point we left. So after the value of n, there is a newline character which we need not to consider, so using cin.get() just removes the newline character.
you have reopen the doubt
you have some questions regarding this??
if it is open by mistake then mark is as resolved again