Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C by dja ( 15 years ago )
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>

   const int N=5;

int main()
{
   int i,j,k,m;
   int a,b,c,d,e, mass[N];
   a=1;
   b=2;
   c=3;
   d=4; 
    
  for(i=0; i<=N; i++)
  {
           mass[i]=a;
           for(j=0; j<=N;j++)
           {
                    if(j!=i)
                    {
                    mass[j]=b;
                    for(k=0; k<=N; k++)
                    {
                             if(k!=j)
                             {
                             mass[k]=c;
                             for(m=0; m<=N; m++)
                             {                     
                                if(m!=k) {mass[m]=d;}
                                printf ("\n");
                                for(e=1;e<=5;e++) { printf("%d", mass[e]); }
                             }
                             }
                    }
                    }
           }      
           
   }
  system&#40;"PAUSE"&#41;;

}

 

Revise this Paste

Your Name: Code Language: