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() | |
{ | |
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 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() | |
{ | |
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 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=0; | |
printf("Exercicio 7\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() | |
{ | |
float Altura,AlturaxPeso=0.0; | |
char Sexo; | |
printf("Exercicio 6\nDigite a sua altura (Ex.: 1.75):"); | |
fflush(stdin); |
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 Numero; | |
printf("Exercicio 5\nDigite um numero:"); | |
//fflush(stdin); | |
scanf("%d",&Numero); |
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 Numero; | |
printf("Exercicio 4\nDigite um numero:"); | |
//fflush(stdin); | |
scanf("%d",&Numero); |
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 Numero; | |
printf("Exercicio 3\nDigite um numero:"); | |
//fflush(stdin); | |
scanf("%d",&Numero); |