-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
result is not declared → You need to declare it as an int or float before using it.
Integer division problem → (number - 32) * 5/9 will perform integer division and may give inaccurate results (e.g., 5/9 becomes 0).
Use 5.0/9.0 to get floating-point division.
Return type mismatch → If you want accurate temperature conversion, you should use double instead of int.
No output → In main, you call the function but don’t print the result.
Metadata
Metadata
Assignees
Labels
No labels