i cannot understand the use of cin.get() here . why is it used when we taken the input as n before ?
it is basically used to consume the enter we press if we do not write cin.get() then cin.getline reads as a empty line in that case the o/p is