Code to add two integers value on Arithmetic Operators
first, use the 3 variables then print the statement of enter the value store the value add the number then print the value.
#include <stdio.h>
#include<conio.h>
int main() {
int a, b, sum;
printf("Enter two integers: ");
scanf("%d %d", &a, &b); // store the value
sum = a + b; //and add the values
printf("%d ", sum); //display the value of sum
return 0;
}
Output:
Enter two integers:10
5
15