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