I have been trying to see what I did wrong in my code, but I counldn't find out. This is my second java program after the "Hello World". Could anyone help me to find out why I did not get the right answer for this. For example, if we enter 43 Celsius it's going to give us 109.4 in Fahrenheit, but I got 75.0 all the time. Thanks in advance
import java.util.*; // this is for Scanner
public class ChapterTwoAssign {
public static void main(String args[]){
// Create a Scanner for input
Scanner input = new Scanner(System.in);
/*Statements for converting Celsius to Fahrenheit */
System.out.println("Enter a degree in Celsius: ");
int celsius = input.nextInt();
// Convert Celsius to Fahrenheit
double fahrenheit = (9 / 5) * celsius + 32;
System.out.println( celsius + " Celsius is " + fahrenheit + " Fahrenheit ");
}
}