What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-20 07:29:10
program to find sum of first n prime numbers in c
#include <stdio.h> int isprime(int j) { int count=0; for(int i = 2 ; i <= j/2; i++) { if(j%i == 0) { count = 1; } } if... Add solution -
C 2021-11-19 03:48:26
Write a interactive C program to find the MINIMUM array elements in a given 3X3 matrix.
#include <stdio.h> #include <limits.h> int main() { int matrix[3][3]; printf("Enter the elements one-by-one:\n"); for(int row = 0; row < 3; row++) { for(int col = 0; col < 3; col++... Add solution -
C 2021-11-18 05:59:19
optimal page replacement algorithm to find page fault
#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 -
C 2021-11-17 18:10:17
C program to calculate the sum of odd and even numbers
#include <stdio.h>void main(){int i, number, odd_sum = 0, even_sum = 0;printf("Enter the value of number\n");scanf("%d", &number);for (i = 1; i <= number; i++){if (i % 2 == 0)even_sum = even_sum + i;elseodd_sum = odd_sum +... Add solution
Best helpers
Daniel Cook
+5
Czlsws
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5