Read the age and weight of 5 people. Calculate the sum of the ages of people over
70 Kg
#include <stdio.h>
int i, age, weight, sum;
main()
{
for( i=0; i<5; i++)
{
printf("Age: ");
scanf("%d",&age);
printf("weight (ex: 92.5): ");
scanf("%d",&weight);
if(weight>70)
sum=sum+age;
}
printf("\age sum: %d", sum);
return(0);
}