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
#include <stdio.h> | |
int main (){ | |
int n,alg=0,c,d,u; | |
printf ("Digite um numero: "); | |
scanf ("%d",&n); | |
c=n/100; | |
d=n/10-(c*10); | |
u=n-(c*100)-(d*10); |
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
#include <stdio.h> | |
int main (){ | |
float peso,altura,imc; | |
printf ("Digite seu peso: "); | |
scanf ("%f",&peso); | |
printf("Digite sua altura"); | |
scanf("%f",&altura); | |
altura=altura*altura; | |
imc=peso/altura; |
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
#include <stdio.h> | |
int main (){ | |
int a,b; | |
printf ("Digite um numero "); | |
scanf ("%d",&a); | |
printf("Digite um numero "); | |
scanf ("%d",&b); | |
if (a>b){ | |
a=a-b; |
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
#include <stdio.h> | |
int dia,mes,mesmax=12,ano,diamax,anobi; | |
int proximodia(dia){ | |
if (dia<diamax){ | |
dia=dia+1; | |
} |
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
#include <stdio.h> | |
int a,b,c,maior=-999999999,menor=999999999,meio; | |
ordenarmaior(a,b,c){ | |
if (a>=maior){ | |
maior=a; | |
} | |
if (b>maior){ | |
maior=b; |
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
#include <stdio.h> | |
#include <math.h> | |
int tamanhodeinteiro (){ | |
unsigned int i,j; | |
for (i=0; j=pow(2,i); i++){ | |
j=pow(2,i); | |
printf("2 ^ %d = %d \n", i,j); | |
} | |
printf("o ultimo numero eh o tamanho maximo que um numero inteiro pode alcancar \n\n"); |
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
#include <stdio.h> | |
int main (){ | |
printf("Hellow World!"); | |
return (0); | |
} |