#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;
}
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:
Post a Comment