/* C प्रोग्राम दो संख्याओं का SUM और AVERAGE पता करने के लिए कोड */
#include <stdio.h>
 
int main()
{
    int a,b,sum;
    float avg;
 
    printf("Enter first number :");
    scanf("%d",&a);
    printf("Enter second number :");
    scanf("%d",&b);
 
    avg= (float)(a+b)/2;
    sum=a+b;
 
    printf("\nSum of %d and %d is = %d",a,b,sum);
    printf("\nAverage of %d and %d is = %f",a,b,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: