SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
C program to add three numbers using function
C program to add three numbers using function
Output:
Enter the three numbers to get the sum:
5 4 6
The sum of 5, 4, 6 is 15
Implementation:
#include
int findsum(int a,int b,int c) { return a+b+c; } int main(void) { int a,b,c; printf("Enter the three numbers to get the sum:\n"); scanf("%d %d %d",&a,&b,&c); printf("The sum of %d, %d , %d is %d",a,b,c,findsum(a,b,c)); return 0; }
PREVIOUS
NEXT
HOME