In this tutorial, you will learn how to write a C program to Calculate Sum And Average Of Given Three Numbers.

# C program to Calculate Sum And Average Of Given Three Numbers:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include<stdio.h> #include<conio.h> #include<stdlib.h> main(){ int a, b, c, sum; float avg; printf("enter three Numers:"); scanf("%d%d%d",&a,&b,&c); sum = a + b + c; avg = (float)sum/3; printf("Sum = %d", sum); printf("\nAverage = %f", avg); } |

## Output of Sum And Average Of Given Three Numbers:

Comment below if you have queries related to the above topic, C Program To Calculate Sum And Average Of Given Three Numbers.

Thakur Aman Singh says

this is good blog thanks and good explanation to how to sum and find the average of three numbers

Buildprogrammer says

Aman Singh, Thank You For Your Support..