/* Read ten numbers and find the position of biggest and smallest number */
/* 	Steps to find position
	Step 1: To find the biggest of ten number
	Step 2: When the condition is finish took the i+1 value
   Using array */
#include<stdio.h>

main()
{
	int i,big_pos,small_pos,number,big=0,a[10];
	clrscr();
	for(i=0;i<10;i++)
	{
		scanf("%d",&a[i]);
		if (a[i]>big)
		{
			big=a[i];
			big_pos=i;
		}
	}
	printf("Biggest Position =%d" ,big_pos+1);
	getch();
}
/*
   input : 1 2 4 6 7 9 100 12 65 8
   output: Biggest Position = 7
*/

/* Exercise: 1. To find the smallest position of ten numbers */