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