#include <stdio.h>

int main() {
    int a,b,c,sum,avg;
    printf ("Enter the three numbers:",a,b,c);
    scanf ("%d%d%d",&a,&b,&c);
    printf ("%d\t%d\t%d\n",a,b,c);
    sum=a+b+c;
    avg=(a+b+c)/3;
    printf ("sum of three numbers:%d\n",sum);
    printf("average of three numbers:%d",avg);
    return 0;
}

Embed on website

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