//this is a program to add 2 numbers using user defined function
#include<stdio.h>
#include<conio.h>
void add();
void main()
{
add();
getch();
}
void add()
{
int a,b;
printf("\n\nEnter Any Two Numbers: ");
scanf("%d%d",&a,&b);
printf("\n\nThe addition of two number is %d",a+b);
}
#include<stdio.h>
#include<conio.h>
void add();
void main()
{
add();
getch();
}
void add()
{
int a,b;
printf("\n\nEnter Any Two Numbers: ");
scanf("%d%d",&a,&b);
printf("\n\nThe addition of two number is %d",a+b);
}