Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
274 B
1
Indexable
Never
#include 
 
int main(void)
{
    int a[11];
    int k;
 
    for (k=0; k<10; ++k){         printf("a[%i] : ",k+1);         scanf("%i",&a[k]);     }       for (k=0; a[k]>=a[9]; ++k);
 
    if (k==10) printf("0\n: ");
    else printf("%i\n ",a[k]);
    return 0;
}
Leave a Comment