All pastes #45398 Raw Edit

Anonymous

public text v1 · immutable
#45398 ·published 2006-03-12 20:21 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(){
        int skc, i, N, K, X, M[1000];
        srand( (unsigned)time( NULL ) );
      
        printf("Iveskite N: ");
        scanf("%d", &N);
 
        for(i=0;i<N;i++){
                if(i==N){
                        skc=rand()%9+1;
                }else{
                        skc=rand()%10;
                }
                M[i]=skc;
        }
 
        printf("\n");
 
        for(i=0;i<N;i++)printf("%d", M[i]);
 
        printf("\n");
        system("pause");
        return 0;
}