题解 | 彩虹糖的梦

彩虹糖的梦

https://www.nowcoder.com/practice/1d8e370f4e6a43f89203ae616ededfdb

#include <stdio.h>

int main() {
    int a[7], b;
    int temp=0;
   for(int i=0;i<7;i++)
   {
    scanf("%d",&b);
    a[i]=b;
   }
   temp=a[0];
    for(int i=0;i<7;i++)
   {
   if( a[i]<=temp)
    temp=a[i];
   }
   printf("%d",temp);
   
    return 0;
}

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务