What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-05 03:14:06
topological ordering program in c
#include<stdio.h>#define MAX 200int n,adj[MAX][MAX];int front = -1,rear = -1,queue[MAX];void main() { int i,j = 0,k; int topsort[MAX],indeg[MAX]; create_graph(); printf(“The adjacency matrix is:\n”); display(); for (i=1;i<+n;i++) { i... Add solution -
C 2021-10-04 01:06:03
hill cipher encryption in c
#include<stdio.h> #include<math.h> float encrypt[3][1], decrypt[3][1], a[3][3], b[3][3], mes[3][1], c[3][3]; void encryption(); //encrypts the message void decryption(); //decrypts the message void getKeyMessage(); //gets key and message f... Add solution -
C 2021-10-03 15:33:05
blockchain implementation
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution -
C 2021-10-03 00:12:05
fibonacci series in c using function
int main() { int n1=0,n2=1,n3,i,number; printf("Enter the number of elements:"); scanf("%d",&number); printf("\n%d %d",n1,n2);//printing 0 and 1 for(i=2;i<number;++i)//loop starts from 2 be... Add solution -
C 2021-10-02 17:57:03
replace max digit two integers
#include<stdio.h> #include <stdlib.h> int main() { char sentence[50][50],w1[20],w2[20],l=0,m=0,min=100; int i=0,index1[50],index2[50]; while(scanf("%s",sentence[i])>0) i++; strcpy(w1,sentence[i-2]); strcpy(w2,sentence[i... Add solution -
Python 2021-10-02 16:53:04
pascal's triangle python reverse function
#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