alangs
Member level 3
anybody plz tell me how to write program for the below logic...
Am having array of a[2000] elements in that i have to increase a count if the numbers are continuously in order for five times like 1,2,3,4,5 for example a[0]=1,a[1]=2,a[2]=3,a[3]=4,a[4]=5, then i have to make a count.....if it is not in order for continuosly five times then i should not increse the count.....finally i have to find out the total count......
--------------------------------------------------------------------------------
Am having array of a[2000] elements in that i have to increase a count if the numbers are continuously in order for five times like 1,2,3,4,5 for example a[0]=1,a[1]=2,a[2]=3,a[3]=4,a[4]=5, then i have to make a count.....if it is not in order for continuosly five times then i should not increse the count.....finally i have to find out the total count......
--------------------------------------------------------------------------------