#include static int but(int [], int) ; int a0[] = {10, 20, 30, 40, 50} ; extern int a2[] ; static int a1[] = {15, 25, 35, 45, 55}, a3[10] ; int main(){ static int val = 0, n ; int a4[] = {100, 200, 300, 400, 500} ; int *p[] = {a0, a1, a2, a3, a4} ; printf("Enter an integer within the range 0-4:") ; scanf("%d", &n) ; while(n) { val = val + but(p[n], n) ; printf("val: %d\n", val) ; n = (n + 1)%5 ; } return 0 ; } static int but(int x[], int n){ int i ; static int val = 0 ; if(n == 2 || n == 3) for(i=0; i