Addition of Two numbers 1


#include<stdio.h>
 
int main()
{
   int a, b, c;
 
   printf("Enter two numbers to add\n");
   scanf("%d%d",&a,&b);
 
   c = a + b;
 
   printf("Sum of entered numbers = %d\n",c);
 
   return 0;
}

Output:
Enter two numbers to add 
4
5
Sum of entered numbers = 9

Leave a comment

Your email address will not be published. Required fields are marked *