This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

17 lines
411 B
C

#include <stdio.h>
#include <stdlib.h>
#include "memory.h"
#include "io.h"
int main()
{
srand(1);
int *ptr, size, drawn;
printf("Enter the size of the set:\n");
scanf("%d", &size);
printf("How many numbers are drawn:\n");
scanf("%d", &drawn);
ptr = allocateMemory(size);
generateNumbers(ptr, drawn, size);
printf("These numbers are drawn:\n");
printNumbers(ptr, drawn);
}