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-18 00:40:03
huffman coding using heap in c
// Huffman Coding in C #include <stdio.h> #include <stdlib.h> #define MAX_TREE_HT 50 struct MinHNode { char item; unsigned freq; struct MinHNode *left, *right; }; struct MinHeap { unsigned size; unsigned capacity; struct MinHNo... Add solution -
Other 2021-09-17 22:01:03
c program to find divisors of a number
#include <stdio.h> void main() { int x, i; printf("\nInput an integer: "); scanf("%d", &x); printf("All the divisor of %d are: ", x); for(i = 1; i <= x; i++) { if((x%i) == 0) {... Add solution