This is in C programming language:
#include <stdio.h>
int main()
{
// To declare integer variables:
int a, b;
// To take input and store it in specified variables:
printf("Enter the first number: ");
scanf("%d", &a);
printf("Enter the second number: ");
scanf("%d", &b);
// To add numbers and print it:
printf("Sum of the two numbers is %d",a+b);
return 0;
}
You can declare another variable 'c', and do c=a+b; and then print c there.