TP
This commit is contained in:
Binary file not shown.
@@ -1,9 +1,13 @@
|
||||
public class Conversion {
|
||||
public static double celsiusAFahrenheit(double n) {
|
||||
/** Prend en argument une température en degrés Celsius et
|
||||
* renvoie sa valeur en degrés Fahrenheit **/
|
||||
return n*9/5+32;
|
||||
}
|
||||
|
||||
public static double FahrenheitACelsius(double n) {
|
||||
/** Prend en argument une température en degrés Fahrenheit et
|
||||
* renvoie sa valeur en degrés Celsius **/
|
||||
return (n-32)*5/9;
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user