Write a function which gets three numbers and return the summation and average o
ID: 2321124 • Letter: W
Question
Explanation / Answer
1
function to determine the average of three numbers
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
float d;
clrscr();
printf("Enter Three numbers ");
scanf("%d%d%d",&a,&b,&c);
d=(a+b+c)/3;
printf("Average is = %f",d);
getch();
return 0;
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.