C Program to Print Sum And Average of Three Numbers
C Program to Print Sum And Average of Three Numbers
#include<stdio.h> #include<conio.h> void main() { float a,b,c,sum,avg; printf("Enter the numbers a,b & c\n"); scanf("%f%f%f",&a,&b,&c); sum=a+b+c,avg=sum/3; printf("Sum of three numbers = %f\nAverage of three numbers = %f",sum,avg); getch(); }