#include <stdio.h>
#include <ctype.h>
#define ASIZE 100
int main(void)
{
int Array[ASIZE];
int temp;
int i=0,j=0;
int count=0;
char c = 'b';
//***************************************************
//read the array from the standard input
printf("Enter an interger for the array:\n");
scanf("%d",&Array[count++]);
printf("Do you want to continue\n");
c = getchar();
while (toupper(c) == 'Y')
{
printf("Enter an interger for the array.\n");
scanf("%d",&Array[count++]);
printf("Do you want to continue: Y:Yes and N:No \n");
scanf("%c",&c);
}
.... rest of the code
|