Thu Nov 13, 2008 1:50 pm
#include <stdio.h>
int main(void)
{
// Read the numbers.
printf("Enter: ");
int n1;
int n2, n3;
scanf("%d %d %d", &n1, &n2, &n3);
// Compute the sum and average.
double sum = n1 + n2 + n3;
printf("Mean %d %d %d is %f\n", n1, n2, n3, sum/3.0);
return 0;
}
|
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.