Write a program to find the average of three numbers

#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,sum,avg;
a=10;
b=20;
c=30;
sum=a+b+c;
avg=sum/3;
printf("average is=%d",avg);
}

No comments:

Post a Comment