c program to find the sum of given number using recursion
C
# 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+sum(number/10);
}
Also in C:
- Title
- powershell search big files
- Category
- C
- Title
- disable gnu++11 option
- Category
- C
- Title
- keras conv2d batchnorm
- Category
- C
- Title
- fibonacci series using recursion
- Category
- C
- Title
- diagonales
- Category
- C
- Title
- remove an element from a set
- Category
- C
- Title
- generate all permutations of string
- Category
- C
- Title
- root in C
- Category
- C
- Title
- too few arguments to function in c
- Category
- C
- Title
- code wars responsable drinker
- Category
- C
- Title
- how to do matrix multiplication in c
- Category
- C
- Title
- es par
- Category
- C
- Title
- read a binary file c
- Category
- C
- Title
- incompatible types when initializing type ‘float’ using type ‘point {aka struct point}’
- Category
- C
- Title
- delete string function in c
- Category
- C
- Title
- switch case c
- Category
- C
- Title
- how to feed a char array to function in C
- Category
- C
- Title
- debian install npm
- Category
- C
- Title
- factorial of a given number in c
- Category
- C
- Title
- c program to perform transpose of a matrix
- Category
- C
- Title
- windowns 10 allow ping
- Category
- C
- Title
- suma de n numeros recursiva
- Category
- C
- Title
- potencia recursiva
- Category
- C
- Title
- tar cmd
- Category
- C
- Title
- hostbuilder add environment variables
- Category
- C
- Title
- how to pass an array value to a pthread in c
- Category
- C
- Title
- get current used proxy windows 7
- Category
- C
- Title
- c program to find the sum of given number using recursion
- Category
- C
- Title
- conda windows 10 from pip._internal.cli.main import main ModuleNotFoundError
- Category
- C
- Title
- calculate max of three numbers using ternary operator in c
- Category
- C
- Title
- for loop in c
- Category
- C
- Title
- mediawiki upload size
- Category
- C
- Title
- bella ciao lyrics
- Category
- C
- Title
- kadane's algorithm
- Category
- C
- Title
- ModuleNotFoundError: No module named 'easydict'
- Category
- C
- Title
- docker images command
- Category
- C
- Title
- variadic function in c
- Category
- C
- Title
- get regedit value cmd
- Category
- C
- Title
- function pointer c
- Category
- C
- Title
- chat c socket tcp geeksforgeeks
- Category
- C
- Title
- simpy process return value
- Category
- C
- Title
- reverse function in c
- Category
- C
- Title
- sbatch array set max jobs at once
- Category
- C
- Title
- div
- Category
- C
- Title
- -> operator
- Category
- C
- Title
- c concatenate strings
- Category
- C
- Title
- fgets c
- Category
- C
- Title
- resto de division recursiva
- Category
- C
- Title
- How to make a printf in c
- Category
- C
- Title
- Gemfile.lock`. It is likely that you need to grant write permissions for that path.
- Category
- C
- Title
- cantidad de digitos recursiva
- Category
- C
- Title
- oop244
- Category
- C
- Title
- Print the number 0 using write()
- Category
- C
- Title
- printf in c
- Category
- C
- Title
- change a attribute in dataframe
- Category
- C
- Title
- triangulo
- Category
- C
- Title
- measure time in c
- Category
- C
- Title
- does strcat null terminate
- Category
- C
- Title
- arduino define
- Category
- C
- Title
- malloc in c
- Category
- C
- Title
- entete
- Category
- C
- Title
- sdl bouton
- Category
- C
- Title
- pasar a binario recursivo
- Category
- C
- Title
- how to put quotes inside string c
- Category
- C
- Title
- #include<stdlib.h>
- Category
- C
- Title
- how to call the tkinter insert command from another class
- Category
- C
- Title
- remove element queue
- Category
- C
- Title
- múltiplos entre dos numeros en c
- Category
- C
- Title
- C/c drop mime
- Category
- C
- Title
- arduino digital io pins
- Category
- C
- Title
- FILE*
- Category
- C
- Title
- what is stdin in c
- Category
- C
- Title
- last element from list javascript
- Category
- C
- Title
- vbl share price
- Category
- C
- Title
- allocate memory c
- Category
- C
- Title
- char to int c
- Category
- C
- Title
- function in c
- Category
- C
- Title
- c check if file was created
- Category
- C
- Title
- arduino digital input pins
- Category
- C
- Title
- c pause for 1 second
- Category
- C
- Title
- multiplicacion recursiva
- Category
- C
- Title
- division recursiva
- Category
- C
- Title
- how to globally initlailize a struct
- Category
- C
- Title
- link whatsapp to website
- Category
- C
- Title
- XAudio2 C
- Category
- C
- Title
- Docker error Error response from daemon: conflict: unable to remove repository reference
- Category
- C
- Title
- what is a long long int in c
- Category
- C
- Title
- es fibo
- Category
- C
- Title
- a enum data type in c with loop
- Category
- C
- Title
- uninstall elgg from hostgtor
- Category
- C
- Title
- docker logs follow
- Category
- C
- Title
- long commands makes terminal lag after modifying PS1
- Category
- C
- Title
- Declare macro
- Category
- C
- Title
- print variable c
- Category
- C
- Title
- full screen on c
- Category
- C
- Title
- mitch mcconnell
- Category
- C
- Title
- functions return type in c
- Category
- C
- Title
- c check if array is empty
- Category
- C
- Title
- for loop c
- Category
- C
- Title
- how to convert int in to const char in c
- Category
- C