float age1, age2, age3;
age1 = age2 = 4.0;
printf("Enter your age\n");
average = (age1 + age2 + age3) / 3;
printf("\nThe average age of the group is %f", average);
[source code] C Programming Tutorial - 14 - Calculating the Average Age
Post a Reply
Nothing to see here.
One of the most popular languages of all time.
|Bucky Roberts Administrator|