No products in the cart.

Java code to convert temperature in …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Java code to convert temperature in to Fahrenheit
  • 1 answers

Priya Singh 6 years, 10 months ago

import java.util.*;
/*
Visit http://www.programmingwithbasics.com/
*/
class CtoF
{
public static void main(String[] args)
{
float cel,feh;
Scanner scan = new Scanner(System.in);
System.out.println("Enter The Temperature in Celsius");

cel = scan.nextFloat();
feh = 32 + (cel * 9 / 5);

System.out.println("Temperature in Fahrenheit = " + feh);
}
}
http://mycbseguide.com/examin8/

Related Questions

Founder of python
  • 2 answers
Select round(6.5675,2);
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App