public class CelsiustoFahrenheitconversion {
public static void main(String[] args) {
//Created for loop to write all temperatures
for(double i =0; i<=20; i++){
//Every value counted and calculated
System.out.println("Temperature="+ i +" Celcius "+ (((9.0/5)*i)+32)+ " Fahrenheit");
}
}
}
Hiç yorum yok:
Yorum Gönder