Specify range values separated by space (min max):
30
35
Fahrenheit Celsius
30.00 -1.11
30.50 -0.83
31.00 -0.56
31.50 -0.28
32.00 0.00
32.50 0.28
33.00 0.56
33.50 0.83
34.00 1.11
34.50 1.39
35.00 1.67
And I leave my code there, I do not know if they can understand the reasoning I tried to have but it's also complicated because I still have a lot of doubts about using the for loop. When I try to run this code, the program asks for the maximum and minimum values, but after I enter the maximum the program gives the error:
java.util.IllegalFormatConversionException: f! = java.lang.String
public static void main(String[] args)
{
System . out . println("Por favor indique um valor minimo:");
int min = scanner.nextInt();
System.out.println("Agora indique um valor máximo:");
int max = scanner.nextInt();
double celsius = (min-32*(5/9));
int i = 0;
min++;
for (i=0; max + 1 > min;min++)
{
System.out.printf("%6.2f\t\t%6.2f\n","Fahrenheit" + min + " Celsius " + celsius);
}
}