Leaderboard
Showing:
Celsius to Fahrenheit Conversion
Basic Accuracy: 33.99% Submissions: 262 Points: 1

Given a temperature in celsius C. You have to convert it in Fahrenheit.
 

Example 1:

Input:
C = 32
Output:
89
Explanation:
For 32 degree C temperature 
in farenheit = 89.

Example 2:

Input:
C = 25
Output:
77
Explanation:
For 25 degree C temperature 
in farenheit = 77.


Your Task:
You don't need to read input or print anything. Your task is to complete the function celciusToFahrenheit() which takes an integer C as input parameters and returns a float value, after converting it into Fahrenheit.

 

Expected Time Complexity: O(1)
Expected Space Complexity: O(1)

 

Constraints:
1 <= C <= 100000

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.

Celsius to Fahrenheit Conversion

Output Window