public class Solution {
public static void main(String[] args) {
System.out.println(convertCelsiusToFahrenheit(41));
}
public static double convertCelsiusToFahrenheit(int celsius) {
//write your code here
public static double convertCelsiusToFahrenheit(int TC) {
double TF;
TF= (double)TC * (9/5) + 32;
return TF;
}
}
package com.codegym.task.task01.task0130;
/*
Our first converter!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(convertCelsiusToFahrenheit(41));
}
public static double convertCelsiusToFahrenheit(int celsius) {
//write your code here
public static double convertCelsiusToFahrenheit(int TC) {
double TF;
TF= (double)TC * (9/5) + 32;
return TF;
}
}