This is the source code from the C Programming Tutorial. In this source code, you are going to learn how to calculate an Average and type declaration instruction in a C Programming language.

If a = 10 and b = 10, then we can write a = b. So we use this concept in the programming. In programming, we write like this

`int a , b ;`

`a = 10;`

`b = 10; // then we can write like this a = b = 10;`

The formula of Average = sum of all of the numbers in a list / the number of items in that list.

#### Here is the source code

#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { // calculation an average float a , b , c , avg; a = b = 10; // printing some text on the screen printf("Enter any number? n"); // scaning user input scanf("%f" , c); // calculating the average of float variable avg = (a + b + C)/3; // printing the average printf("avg = %f", avg); }