/****************print the lowest and the highest number of given some numbers (using array) ******************/
/*------------------------------------------------------------------------------------*/
#include<stdio.h>
#include<math.h>
main()
{
int n,i;
float a[20],max, lowest;
printf("We want to print the lowest and the highest\n");
printf(" \nNumber of some given numbers(using array)\n");
printf("\nPlease enter the value of n\n");
scanf("%d",&n);
printf(\nPplease enter some numbers\n");
for(i=0;i=max)
max=a[i];
}
printf("\nThe required minimun value is=%0.5f\n",lowest);
printf("=\nThe required maximun value is=%0.5f\n",max);
return(0);
}
/*------------------------------------------------------------------------------------*/
#include
#include<math.h>
main()
{
int n,i;
float a[20],max, lowest;
printf("We want to print the lowest and the highest\n");
printf(" \nNumber of some given numbers(using array)\n");
printf("\nPlease enter the value of n\n");
scanf("%d",&n);
printf(\nPplease enter some numbers\n");
for(i=0;i
max=a[i];
}
printf("\nThe required minimun value is=%0.5f\n",lowest);
printf("=\nThe required maximun value is=%0.5f\n",max);
return(0);
}