Skip to content

issue in 32. Conversions #17

@HimanshJodhpuriya

Description

@HimanshJodhpuriya

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions