/*WAP to add two numbers using function
with no arguments and no return value*/
#include<stdio.h>
void add();
int main()
{
add();
return 0;
}
void add()
{
int a,b,sum;
printf("Enter two values = ");
scanf("%d %d",&a,&b);
sum=a+b;
printf("\nsum = %d",sum);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: