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
C program to add three numbers
Output:
Enter the three numbers:
5 4 6
The sum of three numbers 5, 4, & 6 is 15
Implementation:
#include
int main(void) { int a,b,c,sum; printf("Enter the three numbers:\n"); scanf("%d %d %d",&a,&b,&c); sum=a+b+c; printf("The sum of three numbers %d, %d, & %d is %d",a,b,c,sum); return 0; }
PREVIOUS
NEXT
HOME