Question: Write a program that reads in lines from standard input with each line containing a name and two integers and then uses printf() to print
Write a program that reads in lines from standard input with each line containing a name and two integers and then uses printf() to print a table with a column of the names, the integers, and the result of dividing the first by the second, accurate to three decimal places. You could use a program like this to tabulate batting averages for baseball players or grades for students.
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
Sure here is a simple C program that takes a name and two integers from a user and produces a table It calculates the result of dividing the first int... View full answer
Get step-by-step solutions from verified subject matter experts
