-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2843f03
commit a416af5
Showing
68 changed files
with
46 additions
and
977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <stdio.h> | ||
|
||
int main() | ||
{ | ||
float temperatura; | ||
float quantidadeDeChuva; | ||
|
||
scanf("%f", &temperatura); | ||
scanf("%f", &quantidadeDeChuva); | ||
|
||
printf("O VALOR EM CELSIUS = %.2f\nA QUANTIDADE DE CHUVA E = %.2f\n", (temperatura - 32) / 1.8, quantidadeDeChuva * 25.4); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <stdio.h> | ||
|
||
int main() | ||
{ | ||
float valorSalarioMinimo; | ||
float quantidadeConsumidaDeEnergia; | ||
|
||
scanf("%f", &valorSalarioMinimo); | ||
scanf("%f", &quantidadeConsumidaDeEnergia); | ||
|
||
float valorUnidadeKw = valorSalarioMinimo * 0.7 / 100; | ||
float valorTotal = valorUnidadeKw * quantidadeConsumidaDeEnergia; | ||
|
||
printf("Custo por kW: R$ %.2f\n", valorUnidadeKw); | ||
printf("Custo do consumo: R$ %.2f\n", valorTotal); | ||
printf("Custo com desconto: R$ %.2f\n", valorTotal * 0.9); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <stdio.h> | ||
|
||
int main() | ||
{ | ||
int centenas; | ||
int dezenas; | ||
int unidades; | ||
|
||
scanf("%d", ¢enas); | ||
scanf("%d", &dezenas); | ||
scanf("%d", &unidades); | ||
|
||
int numero = centenas * 100 + dezenas * 10 + unidades; | ||
int quadrado = numero * numero; | ||
|
||
printf("%d, %d", numero, quadrado); | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.