Skip to content

Commit e0bf8da

Browse files
Temperature convetor.java
1 parent e8dfad1 commit e0bf8da

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Temperature convetor.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import java.util.*;
2+
3+
public class TempConverter {
4+
public static void main(String[] args) {
5+
Scanner sc = new Scanner(System.in);
6+
7+
System.out.print("Enter Celsius: ");
8+
double c = sc.nextDouble();
9+
10+
double f = (c * 9/5) + 32;
11+
12+
System.out.println("Fahrenheit: " + f);
13+
}
14+
}

0 commit comments

Comments
 (0)