What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-15 15:04:02
Lcm of 2 numbers in c
// for finding lcm of 2 number . Can use this concept to find lcm of an array of number #include <stdio.h> int main() { int n1, n2, max; printf("Enter two positive integers: "); scanf("%d %d", &n1, &n2); ... Add solution -
Java 2021-09-15 12:18:02
monte carlo birthday problem java
#include <stdio.h> // print #include <stdlib.h> <span data-mce-type="bookmark" &n... Add solution -
C 2021-09-15 09:01:04
c get time in milliseconds
#include <sys/time.h> long long current_timestamp() { struct timeval te; gettimeofday(&te, NULL); // get current time long long milliseconds = te.tv_sec*1000LL + te.tv_usec/1000; // calculate milliseconds // printf("millis... Add solution -
Other 2021-09-15 01:57:02
scheduling algorithm os c code
#include <stdio.h> int main() { int arrival_time[10], burst_time[10], temp[10]; int i, smallest, count = 0, time, limit; double... Add solution -
C 2021-09-15 01:56:03
passing 2d array as parameter to function in c
#include <stdio.h> //passing 2D array as a parameter to a function void fun(int *arr, int m, int n) { int i, j; for (i = 0; i < m; i++){ for (j = 0; j < n; j++) printf("%d ", *((arr+i*n) + j)); printf("\n"); } } i... Add solution -
C 2021-09-15 00:13:02
total of two times
#include <stdio.h> int main(void) { int s1,s2,s3,m1,m2,m3,h1,h2,h3,d1,d2,d3; printf("hello user ,welcome to the system :\n"); printf("data time 1 :\n"); printf("hours :"); scanf("%d",&h1); printf("... Add solution