I tried putting a getchar()
function at the end. But it didn't work. So what I did was add two getchar()
functions one after another. I think the first getchar()
absorbs the Enter key you press after the last data input. So try adding two getchar()
functions instead of one