/*WAP to add two numbers using function
with arguments but not return a value*/
#include<stdio.h>
void add(int,int);
int main()
{
int a,b;
printf("Enter two values = ");
scanf("%d%d",&a,&b);
add(a,b);
return 0;
}
void add(int x,int y)
{
int sum=x+y;
printf("\nsum = %d",sum);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: