What do you want to save?
Add Code snippet
New code examples
-
-
C++ 2022-01-30 20:50:09
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 -
C++ 2022-01-30 17:51:12
Write a program to print following pattern; 1 1 2 1 2 3 1 2 3 4
#include <stdio.h> int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("%d ", j); ... Add solution -
C 2022-01-30 15:10:39
power function in c without pow
// power function in c without pow #include <stdio.h> double mypow(double base, double power); int main() { int base, exponent; printf("Enter Base: "); scanf("%d", &base); printf("Enter Exponent: "); scan... Add solution -
Other 2022-01-29 04:07:09
how to insert an element from an array
int main() { int array[100], position, c, n, value; printf("Enter number of elements in array\n"); scanf("%d", &n); printf("Enter %d elements\n", n); for (c = 0; c < n; c++) scanf("%d"... Add solution -
Other 2022-01-26 11:50:34
#include <stdio.h> int main (void) { int a, b; printf("Dwse mou dio akeraious arithmous: \n"); scanf("%d %d", &a, &b); printf("Oi arithmoi poy edwses einai: %d kai %d", a, b); return 0; }
#include <stdio.h> int main (void) { int a, b; printf("Dwse mou dio akeraious arithmous: \n"); scanf("%d %d", &a, &b); printf("Oi arithmoi poy edwses einai: %d kai %d", a, b); return 0; } Add solution -
Other 2022-01-26 11:11:01
Programs to print triangles using *, numbers, and characters
#include <stdio.h> int main() { int i, space, rows, k = 0, count = 0, count1 = 0; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (space = 1; space <= rows -... Add solution -
C 2022-01-26 04:01:05
c shift array left
#include<stdio.h> void main() { int i,n,a[100],temp; printf("Enter the number of elements:\n"); scanf("%d",&n); pr... Add solution