English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

Very simple program in C

#include
#include

int main(){
int i;
int a[]={14,36,52,2006};
do {
printf("Enter the index : ");
scanf("%d",&i);
} while(i<0 || i>3);

printf("Corresponding element is %d",a[i]);
system("pause");
return 0;
}

2006-09-21 08:28:29 · answer #1 · answered by iyiogrenci 6 · 0 1

fedest.com, questions and answers