C Program to find sum of two numbers using functions with returning the value

Program

#include<stdio.h>
int add(int a, int b)
{	
	return a + b;
}
void main()
{
	int a, b, sum;
	printf("Enter two numbers: a and b\n");
	scanf("%d %d", &a, &b);
	sum = add(a, b);
	printf("Sum of %d and %d is %d\n", a, b, sum);
}

Output

Enter two numbers: a and b
3
53
Sum of 3 and 53 is 56