import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int far = sc.nextInt();
int cel = (far - 32) * 5/9;
System.out.printf("%d Fahrenheit is %d Celsius", far, cel);
}
}
fORMULA TO FIND CELSIUS TO fahrenheit .
(32°F − 32) × 5/9 = 0°C
(°C × 9/5) + 32 = °F
1) Multiply celcius value to 9
2)divide that by 5
3)Add 32 to the answer
4) BOOM thats uranswer in Farenheit
Temp in C = (F - 32) × 5/9
(100°F − 32) × 5/9 = 37.778°C
(32°F − 32) × 5/9 = 0°C
(defun farhcelconv()
(format t "Enter degrees in fahrenheit ")
(Let (f)
(setq f (read f))
(APPEND '(celsius is)(*(- f 32)(/ 5 9))')
)
)
Code Example |
---|
C :: definir função em c |
C :: user define function in c |
C :: fread |
C :: print 100 times c |
C :: esp32 dhcp server |
C :: prime numbers |
C :: convert video to gif with ffmpeg |
C :: while loop in c |
C :: c conventions |
C :: %= in c |
C :: c defined value sum |
C :: unused variable in c |
C :: c malloc |
C :: marquee html code with right |
C :: fine print serial key |
C :: allocating memory for 1Mb text file in C |
C :: how tier lists work |
C :: leer string en c |
C :: delimter in c |
C :: ejemplo c holamundo |
C :: remove every appearance of char without malloc in c |
C :: compil cywin cgi |
C :: suma de digitos |
C :: WARNING: QA Issue: rdepends on |
C :: Sum of upper & lower triangles elements |
C :: escaping characters in hibernate queries |
C :: how to turn off bash |
C :: class to const void * |
C :: nosql injection |
C :: write to console c |