## Java Program to calculate Fahrenheit to Celsius

### Description

```Input1:                                                                                                                                                                                                                                                                                                                                                                                                                Enter the Fahrenheit:
284
Output1:
The Celsius Is :140
```

### Solution

```import java.util.*;
class FaToCe
{
public static void main(String args[])
{
double fahreheit,celsius;
Scanner sc=new Scanner(System.in);
System.out.println("Enter The Fahrenheit:");
fahreheit=sc.nextDouble();
celsius=(fahreheit-32)*0.5556;
System.out.println("The Celsius Is:"+celsius);
}
}```

We are Teaching "Web Development using Python" through Online.

View Tutor Profile and Course Syllabus

### Explanation

```Get Fahrenheit  as input (using scanner class)

Calculate Celsius  using Formula celsius=(fahreheit-32)*0.5556

print Celcius  (using system.out.println).```

#### Author - Ramesh P Natarajan

Software Developer and Technology Trainer, very much passionate in the field of Software Application Development, Machine Learning and Search Engine Optimization.

Write to: [email protected]

### Interesting Pattern Programs: for more Patterns

```Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution```
```Input:
5
Output:
*
***
*****
*******
*********
*******
*****
***
*Solution```
```Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution```
```Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution```
```Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution```
```Input:
5
Output:
*********
*******
*****
***
*
***
*****
*******
*********Solution```