Powered by Blogger.

Translate

Tuesday, June 26, 2012

Home » » array greater

array greater

#include<stdio.h>
main()
{
      int i, greater = 0;
      int number[]= {1,2,40,4,5};
      for (i=0; i<5; i++)
      {
          if(number[i]>greater)
          {
                               greater = number[i];
                               }
                               }
                               printf("greater number is:%d",greater);
                               getchar();
                               }
                              
Share this games :

0 comments:

Post a Comment