C Program Example | C Program to Find the Average of Three Numbers

आज के इस आर्टिकल में हम C Language का उपयोग करते हुवे, किन्ही 3 Numbers का Average निकालने वाला Program बनाएंगे |

C Program to Find the Average of Three Numbers
C Program to Find the Average of Three Numbers

C Program To Find The Average of Three Numbers

Algorithm -:

  1. Program Start

2) Declaration of variable

3) Assign the value in variable

4) Run arithmetic operator

5) Print output(Answer)

6) Program End.

Code For Program

//C Program to Find the Average of Three Numbers

#include<stdio.h>
#include<conio.h>
void main()
{
   int a,b,c;
   float avg;
   printf("Enter three number");
   scanf("%d %d %d",&a,&b,&c);

   avg=a+b+c/3.0;

   printf("Average is : %f",avg);
   getch();
}

Output -:

Enter three number
10
15
60
Average is : 45.000000

C Programming Examples

इन्हे भी पढ़े -:

Jeetu Sahu is A Web Developer | Computer Engineer | Passionate about Coding, Competitive Programming and Blogging

Leave a Comment