Write a C Program to find the average of three numbers

Write a C Program to find the average of three numbers

Here is the C Program to find the average of three numbers . The numbers is taken  as input from user.

#include<stdio.h>
#include<conio.h>
int main()
{           int a,b,c;
             printf(“Enter three no. :”);
             scanf(“%d %d %d”,&a,&b,&c);
             printf(“Average of three numbers is:%d”,(a+b+c)/3);
             return 0;
}
Output

You may also like...

Leave a Reply