WAP to find the Average of three numbers

// Program for finding the average of three numbers //


#include<stdio.h>
#include<conio.h>
void main()
{
   float a,b,c,avg;
   printf("Enter the three numbers\n");
   scanf("%f%f%f", &a,&b,&c);
   
     avg=(a+b+c)/3;
   printf("Average of three numbers is:-   %f", avg);
   getch();
}  
  •   The Input and Output of this program are shown in the pictures below:  
                                                                                           INPUT 






                                                                                            OUTPUT   








Comments