In this, we are going to see the Functions that have arguments and returns a value, this program we are going to see addition of two numbers using C Programming Language.
#include <stdio.h>
int add(int x, int y)
{
return x + y;
}
int main()
{
int a, b;
printf("Enter two numbers:\n");
scanf("%d\n %d", &a, &b);
printf("Additon is: %d", add(a, b));
return 0;
}
//.......Coded by JAIDEEP JAMBLE
#ENJOY CODING
No output written
ReplyDeletePost a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP