File tree Expand file tree Collapse file tree 4 files changed +53
-0
lines changed
Expand file tree Collapse file tree 4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+ int main ()
3+ {
4+ float t_C , t_F ;
5+
6+ printf ("\nDigite a temperatura em Celcius: " );
7+ scanf ("%f" , & t_C );
8+
9+ t_F = (9.0 / 5.0 ) * t_C + 32 ;
10+
11+ printf ("\nTemperatura em Farenheit: %f\n" , t_F );
12+ return 0 ;
13+ }
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+ int main ()
3+ {
4+ int n_dias_trab ;
5+ float v_liquido , diaria = 20.0 , ISS = 0.08 ;
6+
7+ printf ("\nDigite o numero de dias: " );
8+ scanf ("%d" , & n_dias_trab );
9+
10+ v_liquido = (1.0 - ISS ) * diaria * (float )n_dias_trab ;
11+
12+ printf ("\nValor Liquido: %f\n" , v_liquido );
13+ return 0 ;
14+ }
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+ #include <conio.h>
3+ int main ()
4+ {
5+ char caractere ;
6+
7+ int dist = 32 ;
8+
9+ caractere = getch ();
10+
11+ printf ("\nCaractere = %c\n" , (caractere >= 97 )? (caractere - dist ): caractere );
12+ return 0 ;
13+ }
Original file line number Diff line number Diff line change 1+ #include <stdio.h>
2+ int main ()
3+ {
4+ float deposito , rendimento , i = 0.005 ;
5+
6+ printf ("\nDigite o valor do deposito: " );
7+ scanf ("%f" , & deposito );
8+
9+ rendimento = deposito * i ;
10+
11+ printf ("\nRendimento: %f\n" , rendimento );
12+ return 0 ;
13+ }
You can’t perform that action at this time.
0 commit comments