title: To get result in the same line where you input values then taken up by scanf
body: <p>i study c programming via a book "c programming with problem solving by jacqueline and keith". and i use turbo c compiler.. i am a beginner in all this so please dont laugh.. there was a question in the book which prints out the employees id(you have to input the id and number of hours he has worked and the rate) and calculate the mans pay.. in this while loop is used.. there is a variation to this where you get the result in a tabular form and in the same line where you input the number of hours and the rate used by scanf.. when we use printf to print the result it comes in the next line.. how to get the result in the same line as the line where scanf values are inputted.. help me please</p>