Dear friends,
pls write me a program to convert the given temperature in fahrenheit to celsius using following conversion formula
f-32
C= ____
1.8
thanks,
lalitha
Printable View
Dear friends,
pls write me a program to convert the given temperature in fahrenheit to celsius using following conversion formula
f-32
C= ____
1.8
thanks,
lalitha
That's not the way it works here. The idea is that you try to solve the problem and then people help when you get stuck. Try to code your solution, post what you have done and the problems you get and you will find people will help.
Lalitha, if you choose not to follow jelly's spectacular advice, what then is your purpose in programming? If you think getting others to solve your problem for you is the way it's done, you may want to choose another profession.
class F2C
{
public static void main(String[] args)
{
Scanner s=new Scanner(System.in);
System.out.println("Enter Farenheit");
int f=s.nextInt();
float c=(f-32)*1.8;
System.out.println("Celcius:"+c);
}
}