!-- inicio configuracao do Syntax Highlighting -->

terça-feira, 23 de julho de 2013

Converter Octal Para Decimal

Converter Octal Para Decimal English Convert Octal to Decimal include include int main() { long int octal,decimal =0; int i=0; printf("Digite o numero em Octadecimal: "); scanf("%ld",&octal); while(octal!=0){ decimal = decimal + (octal % 10) * pow(8,i++); octal = octal/10; } printf("Numero %ld em decimal: ",decimal); return 0; } ...

segunda-feira, 22 de julho de 2013

Converter Decimal Para Binario

Converter Decimal Para Binario English Convert Dec to Bin #include int main(){ long int numdec,cos; int numbin[100],i=1,j; printf("Digite o numero em Decimal: "); scanf("%ld",&numdec); cos = numdec; while(cos!=0){ numbin[i++]= cos % 2; cos = cos / 2; } printf("numero %d em binario : ",numdec); for(j = i -1 ;j> 0;j--) printf("%d",numbin[j]); return 0; } ...

domingo, 21 de julho de 2013

Converter Decimal Para Octal

Converter Decimal Para Octal English Convert Dec to Octal #include #include int main() { long int deci,cos; int octal[100],i=1,j; printf("Entre com os numeros em Decimal: "); scanf("%ld",&deci); cos = deci; while(cos!=0) { octal[i++]= cos % 8; cos = cos / 8; } printf("Numero em Octal %d: ",deci); for(j = i -1 ;j> 0;j--) printf("%d",octal[j]); getch(); } ...

sábado, 20 de julho de 2013

Converter Bin Para Decimal

Converter Bin Para Decimal English Convert Bin to Decimal include main(){ long int nbin,ndec=0,j=1,resto; printf("Numero Binario : "); scanf("%ld",&nbin); while(nbin!=0){ resto=nbin%10; ndec=ndec+resto*j; j=j*2; nbin=nbin/10; } printf("Decimal : %ld ",ndec); } ...

Converter Decimal para Hexadecimal

Converter Dec Para Hexa English Convert Dec to Hexa #include #include int main(){ long int deci,cos; int i=1,j,temp; char hexadeci[100]; printf("Digite o numero em decimal: "); scanf("%ld",&deci); cos = deci; while(cos!=0) { temp = cos % 16; if( temp < 10) temp +=48; else temp +=55; hexadeci[i++]= temp; cos = cos / 16; } printf("Numero %d em Hexadecimal : ",deci); for(j = i -1 ;j> 0;j--) printf("%c",hexadeci[j]); ...

terça-feira, 9 de julho de 2013

Converter Bin Para Decimal

Converter Bin Para Decimal English Convert Bin to Decimal include main(){ long int nbin,ndec=0,j=1,resto; printf("Numero Binario : "); scanf("%ld",&nbin); while(nbin!=0){ resto=nbin%10; ndec=ndec+resto*j; j=j*2; nbin=nbin/10; } printf("Decimal : %ld ",ndec); } ...

segunda-feira, 8 de julho de 2013

Implemente uma lista com arranjos para armazenar a seguinte estrutura FICHA. Nesta implementação o algoritmo deve ser capaz de fazer as seguintes operações:

Implemente uma lista com arranjos para armazenar a seguinte estrutura FICHA. Nesta implementação o algoritmo deve ser capaz de fazer as seguintes operações: a) Inserir um registro da lita b) alterar um registro da lista c) excluir um registro da lista d) imprimir a lista completa English Implement a list of arrangements to store the following structure SHEET. In this implementation the algorithm should be able to do the following operations: a) Insert a record of lita b) change a record from the list c) delete a record from the list d)...

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More