1.4 so hanh phuc

//bai 1.3so hanh phuc

#include<stdio.h>

#include<conio.h>

main()

{

unsigned long int x;

int a1,a2,a3,a4,a5,a6, i=0;

char c;

for(x=0;x<1000000;x++)

{

a1=x/100000;

a2=(x%100000)/10000;

a3=((x%100000)%10000)/1000;

a4=(((x%100000)%10000)%1000)/100;

a5=((((x%100000)%10000)%1000)%100)/10;

a6=((((x%100000)%10000)%1000)%100)%10;

if(a1+a2+a3==a4+a5+a6)

{

printf("\t%d", x);

i++;

if (i%250==0)

getch();

}

}

getch();

}

Bạn đang đọc truyện trên: AzTruyen.Top

Tags: #education