Navigation

    GitHub中文社区
    • GitHub排行榜

    论坛

    • Login
    • Categories
    • Recent
    • Tags
    • Popular

    求十个数中的最大数。

    综合交流
    1
    1
    180
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 150930
      150930 last edited by

      #include<stdio.h>
      int main()
      { int i,arr[]={3,34,45,54,66,75,43,53,21,32},max=arr[0];
      for(i=1;i<=9;i++)
      {if(arr[i]>max)
      max=arr[i];
      }
      printf("%d",max);
      return 0;
      }

      1 Reply Last reply Reply Quote 0
      • First post
        Last post