0

In C operators lesson I have observed the output is wrong.Check whether you are facing the same kind of issue???

#include <stdio.h> int main() { float average; int total = 23; int count = 4; average = (float) total / count; printf("%4.2f", average); return 0; } The output is 5.75 but sololearn output is 8.50. Check the issue and confirm it??? Thank you in advance.

18th Dec 2024, 3:27 AM
KURUKUTI LEHA PRIYA
2 Answers
+ 2
KURUKUTI LEHA PRIYA , on which platform does this issue happen? (androis, ios, web windows)
18th Dec 2024, 8:59 PM
Lothar
Lothar - avatar
0
it's 5.75. no issue.
18th Dec 2024, 8:55 AM
Bob_Li
Bob_Li - avatar