Write a program to find the sum of two numbers using the user defined

//this is a program to find the sum of two numbers using the user defined
#include<stdio.h>
#include<conio.h>
void sum(int x,int y);
void main()
{
int a,b;

printf("\n\nEnter any two numbers: ");
scanf("%d%d",&a,&b);

sum(a,b);
getch();
}
void sum(int x,int y)
{
int sum;
sum=x+y;
printf("\n\nSum=%d",sum);
}

Previous
Next Post »