C program to add two integer numbers
belongs to collection: C programs - Basic C Programs
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
belongs to collection: C programs - Basic C Programs
total answers (1)
C program to add two integer numbers - Source code
Program Output
Program Explanation
1. Three integers variables a, b and sum are declared.
2. User is asked to input two integers to calculate the sum. Entered numbers are stored in a and b variables using the scanf function.
3. Sum of a and b is obtained using arithmetic Addition(+) operator.
need an explanation for this answer? contact us directly to get an explanation for this answer