Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 28, 2020 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/bbcbda01e58d7d69504e690f76c27911 to your computer and use it in GitHub Desktop.
Save parzibyte/bbcbda01e58d7d69504e690f76c27911 to your computer and use it in GitHub Desktop.
public static void main(String[] argumentos) {
float celsius;
Scanner sc = new Scanner(System.in);
System.out.println("Ingresa los grados celsius: ");
celsius = sc.nextFloat();
// Calcular
float fahrenheit = celsiusAFahrenheit(celsius);
System.out.printf("%f grados celsius son %f grados fahrenheit", celsius, fahrenheit);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment