Ad Code

C program to find the average of given three numbers.

 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();
}

Output:-








Post a Comment

0 Comments

Ad Code