What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-12 02:09:03
how to make calculator in c language
#include <stdio.h> int main() { char operator; double first, second; printf("Enter an operator (+, -, *,): "); scanf("%c", &operator); printf("Enter two operands: "); scanf("%lf %lf"... Add solution -
C 2021-09-11 08:23:04
reverse a singly linked list in c
/** * C program to reverse a Singly Linked List */ #include <stdio.h> #include <stdlib.h> /* Structure of a node */ struct node { int data; //Data part struct node *next; //Address part }*head; /* Functions used in the program *... Add solution -
C 2021-09-10 18:28:04
comparer par ordre alphabétique deux chaines C
#include <stdio.h> #include <stdlib.h> int comparaison(char chaine1[], char chaine2[]){ int i = 0; for( i=0 ; (chaine1[i]!='\0') && (chaine... Add solution -
Other 2021-09-10 01:18:02
sum using for loop in c
#include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int x,i,n,num, f = 1; doub... Add solution -
C 2021-09-09 22:26:03
multiplication table function
#include <stdio.h> void mult(int n){ int i,x; printf("The multiplication table for the %d is :\n",n) ; for (i=0;i<=20;i++){ x=n*i; printf("%d x %d = %d\n",n,i,n*i); } } int main() { int n,i,x,r; printf("enter th... Add solution -
Other 2021-09-09 12:04:04
program in c that uses cipher shift
#include<stdio.h> int main() { char message[100], ch; int i, key; printf("Enter a message to encrypt: "); gets(message); printf("Enter key: "); scanf("%d", &key); for(i = 0; message[i] != '\0'; ++i... Add solution