Napište program java pro převod teploty z Celsia na Fahrenheit

Příklady kódu

0
0

Napište program java pro převod teploty z Celsia na Fahrenheit

import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
float cen;
double fah;
Scanner scan = new Scanner(System.in);
System.out.print("Enter Temperature in Cen");
cen = scan.nextFloat();
fah = (1.8*cen) + 32;
System.out.print("Equivalent Temperature is" + fah);
}
}

Související stránky

Související stránky s příklady

V jiných jazycích

Tato stránka je v jiných jazycích

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................