Public feed #893789

Something

public text v1 · immutable
Raw Edit
·published 2008-02-06 13:33 UTC
rendered paste body
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>

int main(void){
    int antalkolonner,rader,kolonner,i;
    time_t t;
    time (&t);
    srand(t);
    printf("Hur manga tipskuponger vill du ha?\n");
    scanf("%d\n",antalkolonner);
    for (rader=0;i<14;i++){
        printf("match nummer %d",i);
        for(kolonner=0;kolonner<antalkolonner+1;kolonner++){
        if (rand()%3==1){
                         printf("|1  |");
                         }
        if (rand()%3==2){
                         printf("| x |");
                         }
        if (rand()%3==3){
                         printf("|  2|");
                         }
}