Advertisement
Guest User

gp number with X searsing error code

a guest
Oct 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.40 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b,c,d,e,f,g,h,i,a1,b1,c1,d1,e1,f1,g1,i1;
  5.      printf("017");
  6.     printf("input your other nubmer's\t");
  7.     scanf("%d%d%d%d%d%d%d%d",&a1,&b1,&c1,&d1,&e1,&f1,&g1,&i1);
  8.     for(a=0; a<=9; a++)
  9.     {
  10.         for(b=0; b<=9; b++)
  11.         {
  12.             for(c=0; c<=9; c++)
  13.             {
  14.                 for(d=0; d<=9; d++)
  15.                 {
  16.                     for(e=0; e<=9; e++)
  17.                     {
  18.                         for(f=0; f<=9; f++)
  19.                         {
  20.                             for(g=0; g<=9; g++)
  21.                             {
  22.                                 for(i=0; i<=9; i++)
  23.                                 {
  24.                                      h=a*10000000+b*1000000+c*100000+d*10000+e*1000+f*100+g*10+i*1;
  25.  
  26.  
  27.                                     if(a1==a && b1==b && c1==c && d1==d && e1==e && f1==f && g1==g && i1==i)
  28.                                     {
  29.                                         printf("%d\n",h);
  30.                                     }
  31.                                     else
  32.                                     {
  33.                                         printf("your input is Error\n");
  34.                                     }
  35.  
  36.                                 }
  37.                             }
  38.                         }
  39.                     }
  40.                 }
  41.             }
  42.  
  43.         }
  44.     }
  45.     return 0;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement