#include #include /* make a program what runs forever, until enter 'e' from keyboard declare a static array / long 10 / filled with any integer numbers on keyboard entry 0 .. 9 print this number and also the value from the array with this as the index */ char s = ' '; int a = 0,i = 0; int myarray[] = {10,11,12,13,14,15,16,17,18,19}; int main() { while ( s != 'e') { printf( "keyboard type a 'e' for EXIT or enter a number 0 ..9 as index for integer array value : "); scanf(" %c", &s); //printf("see %c \n",s); a = (int)s; if ( a >= 48 && a <= 57 ) { i=a-48; printf("number %d, val %d\n",i,myarray[i]); } } return 0; }