SKILL ROCKS TECH SECOND QUESTIONS ANSWER

Q2 find the greatest no. from an array having random numbers of 100 size, with out sorting.


int biggest = ar[0];
for(i=0;i<100;i++)
{
         if(biggest <ar[i])
         biggest=ar[i];
}

cout<< " greatest no. of array :"<<ar[i];

Comments

Popular posts from this blog

SKILL ROCKS TECH QUESTIONS

C Program for Analog Clock Design

Php Check is date or not