What do you want to save?
Add Code snippet
New code examples
-
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 -
C++ 2022-02-05 10:40:25
Write a program that asks a user for their birth year encoded as two digits (like "62") and for the current year, also encoded as two digits (like "99"). The program is to correctly write out the users age in years
#include<stdio.h> int main(){ signed int current, birth, a; printf("Enter Year of Birth\n"); scanf("%d",&birth); printf("Enter Current year\n"); scanf("%d",¤t); if(current<birth) ... Add solution
Best helpers
Christie
+5
Don Yarber
+5
Mike
+5
Jack Steele
+5
Bossylobster
+5
Tjb1982
+5
Alana
+5
Mythio
+5
Rane Chetan
+5
Androider
+5
Ms.Zizmor
+5
Joshua Burns
+5
Sea shell
+5
Zolani13
+5
Meldie Ching
+5
Nancye S....
+5
Oritatami
+5
FirstLegion
+5