Find Average Of 3 Number In C Programming

Write A Program To Input 3 Numbers And Find Out The Average.
\\ If you have any query or questions on my post then please comment below //

                                         Find The Average Of 3 No: 
Before finding the average of 3 numbers, we should know the concept/ formula:
 if the numbers are a,b & c then
Average: (a+b+c)/3 [For Finding average first we add all numbers then divide the added number with total numbers]

Program 3: Program To Find Average Of 3 Numbers:
-----------------------------------------------------------
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d;
printf("Enter 3 numbers:");
scanf("%d%d%d", &a,&b,&c);

d=(a+b+c)/3;
printf("Average of 3 Numbers Are:%d \n"d);
getch();
}  

------------------------------------------------------------
If we enter the value : 2 ,3, 4 then output would be: 3
Solution: d=(2+3+4)/3
              d=3 Expert Review: This question is frequently asked question in all programming languages, this question is mainly asked by HR to Freshers Of Non CS/IT/MCA/BCA Students. They want to know your thinking level and concept is how much good. They can give you proper training or not.

Program 4: Program To Find Average Of 7 Numbers:
-----------------------------------------------------------
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,f,g,h;
printf("Enter 7 numbers:");
scanf("%d%d%d
%d%d%d%d", &a,&b,&c,&d,&e,&f,&g);
h=(a+b+c+d+e+f+g)/7;
printf("Average of 7 Numbers Are:%d \n"h);
getch();
}  

------------------------------------------------------------
its your task to give me output of "Program 4" in below comment box. if i give 
a=8,b=9,c=3,d=4,e=5,f=6,g=7 Then what would be the value of h:
Please write your answers on below comment box:

Video Tutorials On Finding Average Of 3 Numbers In Hindi & English Language:


Click Here To Know How To Download Above Video Tutorials Or YouTube Videos Free


 Enter Your Email Id To Get Our Programming, Web Development, Video Tutorial, Job Updates In Mail :

Labels: