Wednesday, July 22, 2020

Write a Program Addition of two numbers in C.

Addition of two numbers in C.



#include <stdio.h>
int main()
{
  int num1, num2, add;

  printf("Enter two numbers to add\n");
  scanf("%d%d", &num1, &num2);

  add = num1 + num2;

  printf("Sum of the numbers = %d\n", add);

  return 0;
}


OUTPUT

two numbers in C.
Addition Two numbers in C.



1 comment:

Please do not any spam link in Comment Box