What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-02 21:50:14
Write a program to show swap of two numbers without using third variable.
#include<stdio.h> int main() { int a=10, b=20; printf("Before swap a=%d b=%d",a,b); a=a+b;//a=30 (10+20) b=a-b;//b=10 (30-20) a=a-b;//a=20 (30-10) printf("\nAfter swap a=%d b=%d",a,b); retu... Add solution -
C 2022-03-02 21:05:43
c program from decimal to binary
#include <stdio.h> #include <math.h> #include <stdlib.h> #define D 10 int main() { int i, n, k, vet[D]; printf("FROM DECIMALS TO BINARIES\nEnter decimal: "); scanf("%d", &n); k = 0; while (n != ... Add solution -
TypeScript 2022-03-02 12:45:05
sum of diagonal elements of a matrix in c
#include <stdio.h> void main () { int i,j,matrix[10][10],m,n,sum=0; printf("Enter number of rows of matrix : "); scanf("%d", &m); printf("Enter number of columns of matrix : "); scanf("%d... Add solution -
C 2022-03-01 11:50:03
area and circumference of a circle
#include <stdio.h> #define PI 3.142 int main(){ float r, C, A; printf("What is the radius: \n"); scanf("%f", &r); C = 2 * PI * r; A = PI * r * r; printf("\nCincumference is and %f Area is %f\n&quo... Add solution -
Other 2022-03-01 04:15:14
c programming examples
#include<stdio.h> #include<conio.h> void main() { char choise; char hel; int p,k,g; int b,c,e; printf("\n Welcome to GM Program :) \n\n It's a one time usalbe program so you can start the program again and again"); prin... Add solution -
PHP 2022-03-01 03:25:12
recuperer des informations d'une table parent en sql
If you want to handle sessions with a class, I wrote this little class: <?php /* Use the static method getInstance to get the object. */ class Session { const SESSION_STARTED = TRUE; const SESSION_NOT_START... Add solution -
C 2022-02-27 09:40:03
fibonacci series in c using recursion in data structure
#include<stdio.h> int f(int); int main() { int n, m= 0, i; printf("Enter Total terms:n"); scanf("%d", &n); printf("Fibonacci series terms are:n"); for(i = 1; i <= n; i++) { printf("%dn", fibonacci(m)); ... Add solution -
C 2022-02-27 05:30:04
exponent program in c
#include <stdio.h> double mypow(double base, double power); int main() { int base, exponent; printf("Enter Base: "); scanf("%d", &base); printf("Enter Exponent: "); scanf("%d", &exponent); ... 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