/* loop and array */ #include int main() { int height[10]; int i; for (i=0; i<10; i++) { height[i] = i * 10; } for (i=0; i<10; i++) { printf("Height element %d is %d\n", i, height[i]); } for (i=0; i<10; i++) { height[i] = height[i] + 22; } for (i=0; i<10; i++) { printf("Height element %d is %d\n", i, height[i]); } }