https://www.onlinegdb.com/online_c++_debugger
#include <iostream>
#define test(A,B) A+B
#define MIN(x,y) ( ((x) < (y)) ? (x) : (y) )
int main()
{
int a[7]={5,2,3,4,5,6,7};
int result;
int i;
result=a[0];
for(i=0;i<7;i++){
result=MIN(result,a[i]);
printf("%d %d\n",result ,a[i]);
}
printf("%d" ,result);
}
全站熱搜
留言列表