Thursday, June 23, 2016

SOLUTION OF URI 1174


//  1174   (Mahmud_Jamil) BRUR
//  Array Selection I





#include <stdio.h>
int main()
{
    double A[100];
    int i;
    for(i=0; i<=99; i++)
        scanf("%lf", &A[i]);
    for(i=0; i<=99; i++)
    {
        if(A[i]<=10.0)
            printf("A[%d] = %.1lf\n",i, A[i]);
    }
    return 0;
}



0 comments:

Post a Comment