1. #include<stdio.h>
  2. int main()
  3. {
  4. // Variable declaration
  5. int a, b, sum;
  6. // Take two numbers as input from the user
  7. scanf(“%d %d”, &a, &b);
  8. // Add the numbers and assign the value to some variable so that the
  9. // calculated value can be used else where
  10. sum = a + b;
  11. // Use the calculated value
  12. printf(“%d\n”, sum);
  13. return 0;
  14. // End of program
  15. }
Advertisements