What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-18 01:10:02
difference between greatest and smallest number in java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int greatest; int smallest; System.out.print("Enter three numbers: "); ... 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 -
TypeScript 2021-09-08 22:45:02
write a program to print all unique elements in an array
//write a program to print all unique elements in an array in c #include <stdio.h> int main(int argc, char const *argv[]) { int arr[] = {4, 256, 2, 256, 4, 3, 3, 5}, seen; int arr_length = sizeof(arr) / sizeof(int); for (int i = 0; i ... Add solution -
C 2021-09-07 18:11:01
how to find the ith row of pascal's triangle in c
#include <stdio.h> #include <stdlib.h> int main() { int N; scanf("%d", &N); int pascalArray[N + 1][N + 1]; int i, j; if(0 <= N && N <= 20) { for (i = 0; i < N + 1; i++) { for(j =... Add solution -
C 2021-09-04 03:17:02
c generate random number
#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { int number, min, max; system("cls"); printf("What is the minimum number?\n"); scanf("%d", &min); printf("What is the... 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 -
Shell/Bash 2021-08-31 14:43:03
C program to design a digital clock
#include <stdio.h> #include <time.h>//for sleep() function #include <unistd.h> #include <stdlib.h> int main() { int hour, minute, second; hour=minute=second=0; while(1) { //clear output screen system("clear"); //print ti... 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