Ad Code

WRITE A PROGRAM TO FIND THE AVERAGE OF GIVEN THREE NUMBERS:

 Write a program to find 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