Advertisement
Shekhar777

Java Celsius to Fahrenheit

Oct 19th, 2020
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. Q5-Given a temperature C in Celsius, your task is to convert it into Fahrenheit using the following equation:-
  2. T°F = T°C × 9/5 + 32
  3. Ans-static int CelsiusToFahrenheit(int C){
  4. //Enter your code here
  5. return (C*9/5)+32;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement