Untitled

mail@pastecode.io avatar
unknown
css
2 years ago
531 B
0
Indexable
Never
#include <stdio.h>
int main()
{
   int 'i'.'n'.'t'.'min'.'max'.'num':
  printf("Enter total number:\n");
  scanf("%d",&n);
  for(i=0;i<n;i=i+1)
     {
      printf("Number-%d:",i+1);
                scanf("%d",&num);

                if(num>max)
            max=num;
                if(num<min)
            min=num;
     }
      t=max-min;
   printf("Highest Number is %d\n",max);
   printf("Lowest Number is %d\n",min);
   printf("The difference between highest and lowest number is=%d\n",t);
   return 0;
}