Untitled

 avatar
unknown
c_cpp
4 months ago
353 B
2
Indexable
// Online C compiler to run C program online
#include <stdio.h>

int main() {
    
    int numeri[] = {11,44,3,21};
    
    int massimo = numeri[0];
    
    for(int i=1; i<4; i++)
    {
        if(numeri[i] < massimo)
        {
            massimo = numeri[i];
        }
    }
    
    printf("Il massimo e: %d\n", massimo);
    
    

    return 0;
}
Editor is loading...
Leave a Comment