Decimal Para Binario
Pesquisas Acadêmicas: Decimal Para Binario. Pesquise 862.000+ trabalhos acadêmicosPor: • 1/12/2014 • 381 Palavras (2 Páginas) • 339 Visualizações
#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");
}
...