C Program to Add Two Numbers

C Program to Add Two Numbers

Write C Program to Add Two Integer Numbers

#include<stdio.h>

int main()
{
	int n1,n2;

	printf("Enter the Number 1:--> ");
	scanf("%d", &n1);

	printf("Enter the Number 2:--> ");
	scanf("%d", &n2);

	int c = n1 + n2;
	printf("Addition: %d + %d =  %d", n1, n2, c);

	return 0;
}

Output:

Enter the Number 1:--> 23
Enter the Number 2:--> 56

Addition: 23 + 56 = 79