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 -
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 -
Python 2021-08-31 11:20:01
Print Odd Even Negative Integer Count
#include<stdio.h> int main() { int n,i,e=0,o=0,ne=0; scanf("%d",&n); int a[n]; for(i=0;i<n;i++){ scanf("%d",&a[i]); if(a[i]<0) ne++; else if(a[i]%2==0&&a[i]>=0) e++; else o++; } printf("%d %d... Add solution -
Other 2021-08-28 01:22:01
create 2d array take input form user and write a display fuction to display in array format in c
#include<stdio.h> int main(){ /* 2D array declaration*/ int disp[2][3]; /*Counter variables for the loop*/ int i, j; for(i=0; i<2; i++) { for(j=0;j<3;j++) { printf("Enter value for disp[%d][%d]:", i, j);... Add solution