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

Algorithm -:

  • Program Start
  • Declaration of variable
  • Assign the value in variable
  • Run arithmetic operator
  • Print output(Answer)
  • 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

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

Leave a Reply

Your email address will not be published. Required fields are marked *