Cin.get() double use

why did we use cin.get() twice one before the loop

hi @Saumya123456789
ch=cin.get()
first cin.get() is use to take first charcter
because to check the condition of loop
while(ch!=’.’){
}
we need something in ch so we take first character seperately
and the all other character are taken inside loop

i hope you understand