#include<stdio.h> main() { int a[5] = {66,33,77,11,10}; int min,smin,i; smin = a[0]; for(i=0;i<=4;i++) { if(a[i]<min) { smin = min; min = a[i]; } if(min<a[i]&&a[i]<smin) { smin = a[i]; } } printf("the first min number z %d\n",min); printf("the second min number z %d\n",smin); } op : the first min number z 10 the second min number z 11
Aliquam molestie ligula vitae nunc lobortis dictum varius tellus porttitor. Suspendisse vehicula diam a ligula malesuada a pellentesque turpis facilisis. Vestibulum a urna elit. Nulla bibendum dolor suscipit tortor euismod eu laoreet odio facilisis.
0 comments: