TrabalhosGratuitos.com - Trabalhos, Monografias, Artigos, Exames, Resumos de livros, Dissertações
Pesquisar

Decimal Para Binario

Pesquisas Acadêmicas: Decimal Para Binario. Pesquise 861.000+ trabalhos acadêmicos

Por:   •  1/12/2014  •  381 Palavras (2 Páginas)  •  331 Visualizações

Página 1 de 2

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

#include <stdio.h>

#include <stdlib.h>

int main(){

int n, r;

printf("Informe um numero: ");

scanf("%d", &n);

if(n == 1){

printf("%d\n\n", n);

}else{

printf("Forma binaria");

do{

r = n%2;

printf("%d\n", r);

n = n/2;

}while(n >= 1);

printf("\n");

}

system("pause");

}

...

Baixar como  txt (5.9 Kb)  
Continuar por mais 1 página »