Skip to content

Instantly share code, notes, and snippets.

@jiya426
jiya426 / Prgm2.c
Last active October 28, 2025 04:16
Prgm
#include <stdio.h>
#include <omp.h>
int main() {
int n;
printf("Enter number of iterations: ");
scanf("%d", &n);
int thread_start[100], thread_end[100];
int i;
for (i = 0; i < 100; i++) {
thread_start[i] = -1;