- 1

How to use scanner object to convert from Cal to fah temperature

22nd Aug 2021, 4:27 AM
Ahmed Abdallah Rasheed Alselayem
Ahmed Abdallah Rasheed Alselayem - avatar
2 Answers
0
Ahmed Abdallah Rasheed Alselayem Take celcius as a integer input using scanner and using the formula provided by Jay Matthews calculate farenhite.
22nd Aug 2021, 5:35 AM
A͢J
A͢J - avatar
- 1
import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); } }
22nd Aug 2021, 5:12 AM
Ahmed Abdallah Rasheed Alselayem
Ahmed Abdallah Rasheed Alselayem - avatar