0%
0 / 7 answered
Variables and Data Types Practice Test
•7 QuestionsQuestion
1 / 7
Q1
Based on the temperature conversion tool below, how does changing fahrenheit from double to int affect the printed output?
double celsius = 37.0;
Converter conv = new Converter();
double fahrenheit = conv.toFahrenheit(celsius);
System.out.println(fahrenheit);
Based on the temperature conversion tool below, how does changing fahrenheit from double to int affect the printed output?
double celsius = 37.0;
Converter conv = new Converter();
double fahrenheit = conv.toFahrenheit(celsius);
System.out.println(fahrenheit);