Skip to content

Instantly share code, notes, and snippets.

View hossainel's full-sized avatar
💭
I may be slow to respond.

Md Safayet Al Hossain hossainel

💭
I may be slow to respond.
View GitHub Profile
/* https://gist.github.com/hossainel/58e23955eb3e55902e0648102310b06f */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void generateMatrix(int M[10][10], int N) {
srand(time(0));
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
M[i][j] = rand() % 10;
}