What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-17 22:01:03
c program to find divisors of a number
#include <stdio.h> void main() { int x, i; printf("\nInput an integer: "); scanf("%d", &x); printf("All the divisor of %d are: ", x); for(i = 1; i <= x; i++) { if((x%i) == 0) {... Add solution -
C 2021-09-17 14:15:01
c program to find the sum of given number using recursion
# include <stdio.h> int sum(int number); int main { int n; int a; printf("enter a number"); scanf("%d,&n); a=sum(n); printf("sum=%d",a); } int sum(int number) { if (number==0) return 0; return(number%10+su... Add solution -
TypeScript 2021-09-17 12:54:02
Write a C program to count total number of duplicate elements in an array.
/** * C program to count total number of duplicate elements in an array */ #include <stdio.h> #define MAX_SIZE 100 // Maximum array size int main() { int arr[MAX_SIZE]; int i, j, size, count = 0; /* Input size of array */ prin... Add solution -
C 2021-09-16 15:31:03
multiplication table using c
#include <stdio.h> int main(){ //declaring variables int n,i,a,start,end; //taking and printing the instructions printf("Enter first number from where you want to start multiplication : \n"); scanf("%d",&sta... Add solution -
C 2021-09-16 12:53:02
find sum of individual column of a 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 -
Other 2021-09-16 02:37:02
c program to find the class of ip address
#include <stdio.h> #include <string.h> /* Function : extractIpAddress Arguments : 1) sourceString - String pointer that contains ip address 2) ipAddress - Target variable short type array pointer that will store ip address octets */ void ext... Add solution -
C 2021-09-15 22:59:02
Write a C program to search an existing element in singly linked list
#include <stdio.h> #include <stdlib.h> struct node { int num; struct node *nextptr; } stnode, *ennode; int FindElement(int); void main() { int n,i,FindElem,FindPlc; stnode.nextptr=NULL; ennode=&stnode; printf("\n\n Linked... Add solution -
Other 2021-09-15 15:04:02
Lcm of 2 numbers in c
// for finding lcm of 2 number . Can use this concept to find lcm of an array of number #include <stdio.h> int main() { int n1, n2, max; printf("Enter two positive integers: "); scanf("%d %d", &n1, &n2); ... Add solution