-
Linguagem
C
-
Descrição
Conversão de graus Celsius para graus Fahrenheit
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 celsius: ");
scanf ("%f", &graus_celsius);
(void) getchar ();
graus_fahrenheit=1.8*graus_celsius+32;
printf ("O valor do graus fahrenheit: %g\n", graus_fahrenheit);
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}
#include <stdlib.h>
int main (void)
{
float graus_celsius, graus_fahrenheit;
printf ("Digite o valor do graus celsius: ");
scanf ("%f", &graus_celsius);
(void) getchar ();
graus_fahrenheit=1.8*graus_celsius+32;
printf ("O valor do graus fahrenheit: %g\n", graus_fahrenheit);
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}