What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-03 02:13:01
Optimal Page Replacement Algorithm
#include<stdio.h> int main() { int no_of_frames, no_of_pages, frames[10], pages[30], temp[10], flag1, flag2, flag3, i, j, k, pos, max, faults = 0; printf("Enter number of frames: "); ... Add solution -
TypeScript 2021-09-01 04:21:02
Write a function digitsum that calculates the digit sum of an integer. The digit sum of an integer is the sum of all its digits.
#include <stdio.h> int getSum(unsigned long long n) { int sum = 0; for (; n; n /= 10) sum += n % 10; return sum; } int main(){ printf("Sum of digits = %d\n", getSum(555)); } Add solution -
Other 2021-09-01 01:46:01
how to find circumference of a circle
#include <stdio.h> #define PI 3.142 int main(){ float r, C, A; printf("What is the radius: \n"); scanf("%f", &r); C = 2 * PI * r; A = PI * r * r; printf("\nCincumference is and %f Area is %f\n&quo... Add solution -
C 2021-08-31 18:00:01
fcfs disk scheduling in c
/* This code is contributed by : Tanishq Vyas (github : https://github.com/tanishqvyas) */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> //Header file for sleep() #include <pthread.h> int main(int argc, char cons... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5