Java Program to Convert Celcious TO Fahrenheit

 Program - 

import java.util.Scanner;

public class Main

{

public static void main(String[] args)

{

    Scanner sc = new Scanner(System.in);

System.out.println("Enter a celcious");

float c= sc.nextInt();

float a,b;

a=c*9;

b=a/5;

c=b+32;

System.out.println("fahrenhit is "+c);

}

}



Output -

Enter a celcious

23

fahrenhit is 73.4




Comments

All time Best Post

Write a program that declares a class named Person. It should have instance variables to record name, age and salary. Use new operator to create a Person object. Set and display its instance variables.

express session login system using node express mongodb

IMAGE CRUD OPERATION USING EXPRESS MONGOOSE MULTER

connect websocket to binance api and store t he true value in the db

CRUD APP WITH SORT IN NODE EXPRESS AND MONGODB

Rock-Paper-Scissor Game in Pure JavaScript

how to delete image from the folder directly from a Request (MULTER)

calculate rsi

java program for 1 to 10 print using while loop