Source Code for calculating the average of given three numbers.
#inlcude<stdio.h>
#include<conio.h>
void main()
{
int A,B,C, Sum, Avg;
clrscr();
printf(:”Enter the numbers:”);
scanf(“%d%d%d”,&A,&B,&C);
Avg = (A+B+C)/3;
printf(“Average of thegiven numbers are = %d,Avg);
getch();
}


0 Comments