-
Linguagem
C
-
Descrição
Conversão de graus Fahrenheit para graus Celsius
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
float graus_celsius, graus_fahrenheit;
printf ("Digite o valor do graus fahrenheit: ");
scanf ("%f", &graus_fahrenheit);
(void) getchar ();
graus_celsius=(graus_fahrenheit-32)/1.8;
printf ("O valor do graus celsius: %g\n", graus_celsius);
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}
#include <stdlib.h>
int main (void)
{
float graus_celsius, graus_fahrenheit;
printf ("Digite o valor do graus fahrenheit: ");
scanf ("%f", &graus_fahrenheit);
(void) getchar ();
graus_celsius=(graus_fahrenheit-32)/1.8;
printf ("O valor do graus celsius: %g\n", graus_celsius);
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}