Monday, February 17, 2020

Addition program in C


#include <stdio.h>
int main()
{
  int x, y, z;
  printf("Enter two numbers to add\n");
  scanf("%d%d", &x, &y);
  z = x + y;
  printf("Sum of the numbers = %d\n", z);
  return 0;
}
Output of the program:
Addition C program output.

No comments:

Post a Comment