double x = 1500;
for(int k = 0; k<10 ; k++){
double t = 0;
for(int i=0; i<12; i++){
t += x * 0.0675;
x += x * 0.0675;
}
cout<<"Bas ana: "<<x<<"\tSon faiz: "<<t<<"\tSon ana: "<<x+t<<endl;
}
これが出力
バス アナ: 3284.78 ソン ファイズ: 1784.78 ソン アナ: 5069.55
バス アナ: 7193.17 ソン ファイズ: 3908.4 ソン アナ: 11101.6
バス アナ: 15752 ソン ファイズ: 8558.8 ソン アナ: 24310.8
バス アナ: 34494.5 ソン ファイズ: 18742.5 ソン アナ: 53237
バス アナ: 75537.8 ソン ファイズ: 41043.3 ソン アナ: 116581
バス アナ: 165417 ソン ファイズ: 89878.7 ソン アナ: 255295
バス アナ: 362238 ソン ファイズ: 196821 ソン アナ: 559059
Bas ana: 793246 Son faiz: 431009 Son ana: 1.22426e+006
Bas ana: 1.73709e+006 Son faiz: 943845 Son ana: 2.68094e+006
バス アナ: 3.80397e+006 ソン ファイズ: 2.06688e+006 ソン アナ: 5.87085e+006
科学的な数値ではなく、正確な数値で数値を表示してほしい。これどうやってするの?