Generation

generate functionTue, 02 May 2023

Programa que lea una cantidad de grados centígrados y la pase a grados Fahrenheit. La fórmula correspondiente es: F = 32 +(9* C/5)

public class CelsiusConverter { public static void main(String[] args) { float celsius; float fahrenheit; celsius = 50; fahrenheit = (celsius * 9 / 5) + 32; System.out.println("fahrenheit: " + fahrenheit); } }

Questions about programming?Chat with your personal AI assistant