What do you want to save?
Add Code snippet
New code examples
-
-
C 2022-02-14 22:50:07
sum of all column in matrix in c
/* C Program to find Sum of columns in a Matrix */ #include<stdio.h> int main() { int i, j, rows, columns, a[10][10], Sum; printf("Please Enter Number of rows and columns : "); scanf("%d %d", &i, &j... Add solution -
C++ 2022-02-13 23:15:04
code implementation of krushkals algorithm
a,b,u,v,n,ne=1; int min,mincost=0,cost[9][9],parent[9]; int find(int); int uni(int,int); void main() { #include ... Add solution -
C 2022-02-13 21:20:06
floyd warshall algorithm c program
#include<stdio.h>#include<conio.h>int min(int,int);void floyds(int p[10][10],int n) { int i,j,k; for (k=1;k<=n;k++) for (i=1;i<=n;i++) for (j=1;j<=n;j++) if(i==j) p[i][j]=0; else p[i][j]=min(p[i][j],p[i][k]+p[k][j])... Add solution -
C 2022-02-11 22:40:24
change text color c
#include <stdio.h> #include <windows.h> #define COLOR_DEFAULT 7 #define LIGHT_RED 12 void setColor(int color); int main() { setColor(LIGHT_RED); printf("This text is red"); setColor(colorDefault); } void setColor(int color... Add solution -
Other 2022-02-09 23:50:18
how to swap using bitwise operator
#include<stdio.h> void main() { int a,b; printf("Enter the value of a and b: "); scanf("%d %d", &a, &b); a = a^b; b = b^a; a = a^b; printf("Value of a is: %d\n", a); printf("... Add solution -
C 2022-02-09 10:55:11
c exponential until value
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; printf("Enter number: "); scanf("%d", &a); printf("\nEnter limit: "); scanf("%d", &b); c = a; while(a < (b + 1)... Add solution -
Other 2022-02-07 04:30:16
dijkstra algorithm using c
#include<stdio.h>#include<conio.h>#define INFINITY 9999#define MAX 10 void dijikstra(int G[MAX][MAX], int n, int startnode); void main(){ int G[MAX][MAX], i, j, n, u; clrscr(); printf("\nEnter the no. of vertices:: "); scan... Add solution -
C 2022-02-06 11:45:14
c program to find the sum of given number
# include<stdio.h> int main { int number; int sum=0; int remainder; printf("enter a number\n"); scanf("%d",&number); for(;number!=0;) { remainder=number%10; sum=sum+remainder; number=number/10; } printf("sum of digits=%d... Add solution
Best helpers
Czlsws
+5
Shahruz Raad
+5
Horse
+5
Csandreas1
+5
SOUMEN
+5
Vy32
+5
Anugram
+5
ImMathan
+5
Joyo
+5
Huggy Buggy
+5