#include <stdio.h>
int main() {
int x,y;
void add(int,int);
printf("\n Enter 2 noo for add:");
scanf("%d%d",&x,&y);
add(x,y);
return 0;
}
void add(int x,int y)
{
int t;
float avg;
t=x+y;
avg=t/2.0;
printf("\n SUM = %d & avg = %f",t,avg);
}
To embed this program on your website, copy the following code and paste it into your website's HTML: