Tuesday, August 25, 2020

# include Essays - C Standard Library,

# incorporate stdio.h # incorporate stdlib.h # characterize SIZE1 100 # characterize SIZE2 50 int fundamental () twofold array1[ SIZE1 ]; twofold array2[ SIZE2 ]; twofold *parr1=array1, *parr2=array2; int lichylnyk1=0, lichylnyk2=0, check =0; twofold avg , sum2=0; printf ( Input first exhibit ); printf ( Put any letter to stop ); for (; (parr1-array1) SIZE1 ; parr1++) on the off chance that (! scanf_s ( %lf ,parr1)) break ; lichylnyk1++; } /* parr1=array1; for (; (parr1 - array1) lichylnyk ; parr1++) printf (%d ,*parr1); }*/ getchar (); getchar (); printf ( Input second exhibit ); printf ( Put any letter to stop ); for (; (parr2 - array2) SIZE2 ; parr2++) in the event that (! scanf_s ( % lf , parr2)) break ; lichylnyk2++; } for (parr2=array2; (parr2 - array2) lichylnyk2; parr2++) sum2+=*parr2; } avg =sum2/lichylnyk2; twofold arrayforcheck [ SIZE1 ]; int n=0; for ( int I = 0; I lichylnyk1; i++) in the event that ( avg *(array1+i)) *( arrayforcheck+n )=*(array1+i); n++; check =1; } } twofold min1 = * arrayforcheck ; in the event that ( check ) for ( int I = 0; I n; i++) in the event that (*( arrayforcheck+i )min1) min1= *( arrayforcheck + I); } printf ( % lf , min1); } else printf ( Dont exist ); bring 0 back; }

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.