Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Q5-Given a temperature C in Celsius, your task is to convert it into Fahrenheit using the following equation:-
- T°F = T°C × 9/5 + 32
- Ans-static int CelsiusToFahrenheit(int C){
- //Enter your code here
- return (C*9/5)+32;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement