212k views
5 votes
Could someone please tell me why the highlighted statement is returning 0.00000 instead of 9.1 (my input)? (IN DETAIL)

p.s. this is C programming language.

Could someone please tell me why the highlighted statement is returning 0.00000 instead-example-1
User StewieG
by
7.6k points

1 Answer

2 votes

Answer:

You need to change the data type of "points" to a double.

Could someone please tell me why the highlighted statement is returning 0.00000 instead-example-1
User Baryo
by
7.2k points