cels = (fahr - 32.0) * 5.0/9.0; //Fahr to cels
fahr = (cels * 9.0/5.0) + 32.0; //Cels to fahr
fahr = celsius * (9.0/5.0) + 32.0;
float cel;
printf("Enter celsius value: ");
scanf("%f", &cel);
printf("Fahrenhit value is: %f", cel * (9 / 5) + 32);
Code Example |
---|
C :: enable disable audio listener unity |
C :: int to char in c |
C :: epoch time in c |
C :: hello word in c |
C :: Bitwise Operators in C/C++ |
C :: c/c++ windows api download file |
C :: how to reset all values of 2d vector to 0 |
C :: ft_putchar |
C :: Write a 64-bit program in assembly that prints Hello, world in .asm |
C :: c language string |
C :: unable to locate package dos2unix |
C :: c bits |
C :: lichess puzzles |
C :: mongo script to find collection size in database |
C :: c program for swapping of two numbers |
C :: sockaddr_in c |
C :: open with overwrite c |
C :: sleep in c |
C :: print in c |
C :: how to read from a file in c |
C :: fifo in c |
C :: c calling a function |
C :: c read file from command line |
C :: gcc compiler for windows 10 |
C :: arduino vscode upload choosing sketch |
C :: esp local control |
C :: npm fs zip |
C :: C if...else Statement |
C :: c pointers to struct |
C :: when to add & in snacf c |