hey, this may be a dumb question, but any help would be great.
i want to find the average of some heights, to find the average height of players in a basketball team. im using scanf for retrieving the heights
so my code gets all the heights in cm, then divids it by the number of players, but it only allows whole numbers to be inputted, and even if numbers are say for example: 3, 3, 3, 3, 3, it will return 7, instead of 7.5
i was told using %.2f will round everthing to decimal places. is that correct?
sorry if this is a dumb question, im very new to this.