//W.A.P to calculate the average of three numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
float average;
clrscr();
printf("Enter first numbers:\n");
scanf("%d",&a);
printf("Enter second numbers:\n");
scanf("%d",&b);
printf("Enter third numbers:\n");
scanf("%d",&c);
average=(a+b+c)/3;
printf("\nAVERAGE is %f",average);
getch();
}
OUTPUT:
Comments
Post a Comment