Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c,d,e,f,g,h,i,a1,b1,c1,d1,e1,f1,g1,i1;
- printf("017");
- printf("input your other nubmer's\t");
- scanf("%d%d%d%d%d%d%d%d",&a1,&b1,&c1,&d1,&e1,&f1,&g1,&i1);
- for(a=0; a<=9; a++)
- {
- for(b=0; b<=9; b++)
- {
- for(c=0; c<=9; c++)
- {
- for(d=0; d<=9; d++)
- {
- for(e=0; e<=9; e++)
- {
- for(f=0; f<=9; f++)
- {
- for(g=0; g<=9; g++)
- {
- for(i=0; i<=9; i++)
- {
- h=a*10000000+b*1000000+c*100000+d*10000+e*1000+f*100+g*10+i*1;
- if(a1==a && b1==b && c1==c && d1==d && e1==e && f1==f && g1==g && i1==i)
- {
- printf("%d\n",h);
- }
- else
- {
- printf("your input is Error\n");
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement