## Java Program to calculate Celsius to Fahrenheit

### Description

```Input 1:                                                                                                                                                                                                        Enter the Celsius:1
Output1:
The Fahrenheit Is:33.8

```

### Solution

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

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

View Tutor Profile and Course Syllabus

### Explanation

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

Calculate fahreheit  using Formula fahreheit=celsius*1.8+32;

print fahreheit  (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```