Saturday, August 27, 2016

uri- 1178 - Array Fill III

#include <stdio.h>

int main(){
    int i;
    double n;
    scanf("%lf",&n);
    for (i = 0; i <100; i++){
        printf("N[%d] = %.4f\n", i,n);
        n=n/2;
            }
    return 0;
}

No comments: