Program to Find the average of three numbers by Akshay Palampalle
#include<stdio.h>
int main()
{
// Program to find the average of three numbers. //
// By Akshay Palampalle //
int a, b, c;
int sum, avg;
printf("Read A :");
scanf("%d", &a);
printf("Read B :");
scanf("%d", &b);
printf("Read C :");
scanf("%d", &c);
sum = a+b+c;
printf("\nSum = %d", sum);
avg = sum / 3;
printf("\nAverage = %d", avg);
return 0;
// Program Successfully Executed Withouot Any Error. //
}
Comments
Post a Comment