Whats its use here.
If we dont use the cin.get() above the loop. It doesnt store any thing in a[0] row.
First input gets stored in a[1].
Why is that?.
Cin.get() function
hello @anasmir24
when we input number and press enter then that \n remains inside buffer, cin.get() is reading the same \n from the buffer .
if we dont use cin.get() then we will read \n in a[0] which we dont want.