Thursday, June 23, 2016

SOLUTION OF URI 1178


//  1178    (Mahmud_Jamil) BRUR
//  Solution of 1178 Array Fill III







#include <stdio.h>
int main()
{
   int a;
    double N[100],b,c,d;
    scanf("%lf", &b);
    N[a]=b;
    for(a=0; a<100;a++)
    {
        printf("N[%d] = %.4lf\n", a, N[a]);
        b/=2;
        N[a+1]=b;
    }
    return 0;
}