This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| int main() | |
| { | |
| int Codigo=0; | |
| printf("Exercicio 8\nDigite o codigo do produto:"); | |
| scanf("%d",&Codigo); |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| int main() | |
| { | |
| int Num1,Num2,Num3,x=0; | |
| printf("Exercicio 9\nDigite 3 numeros.\nPrimeiro numero:"); | |
| scanf("%d",&Num1); |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| int main() | |
| { | |
| int Num=0; | |
| printf("Exercicio 10\nDigite um numero:"); | |
| scanf("%d",&Num); |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| int main() | |
| { | |
| float Salario,Desconto=0.0; | |
| printf("Exercicio 11\nDigite seu salario:"); | |
| scanf("%f",&Salario); |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| int main(){ | |
| int Idade=0; | |
| printf("Digite sua idade:"); | |
| scanf("%d",&Idade); | |
| if(Idade>=18 && Idade <=65){ |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| int main(){ | |
| int Idade=0; | |
| printf("Digite idade:"); | |
| scanf("%d",&Idade); | |
| if(Idade>18 && Idade<=65){ |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| #include <conio.h> | |
| #include <math.h> | |
| #define PI 3.14 | |
| float Volume(float raio){ | |
| float v= 4/3 * (PI*pow(raio,3)); | |
| return v; |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| #include <conio.h> | |
| #include <math.h> | |
| int Primo(int numero){ | |
| int i=0; | |
| int p=1; | |
| for(i=2;i<numero;i++){ |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| /* | |
| Faça um procedimento que recebe a idade de um nadador por parâmetro e retorna , também por parâmetro, a categoria desse nadador de acordo com a tabela abaixo: | |
| Idade Categoria | |
| 5 a 7 anos Infantil A | |
| 8 a 10 anos Infantil B | |
| 11-13 anos Juvenil A | |
| 14-17 anos Juvenil B | |
| Maiores de 18 anos (inclusive) Adulto | |
| */ |
This file contains hidden or 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
| //https://gist.github.com/FelipeGrijo | |
| #include <stdio.h> | |
| int PouN(int vnum){ | |
| int PN; | |
| if(vnum >= 0){ | |
| PN=1; | |
| } | |
| else{ |