- Messages
- 399
- Reaction score
- 0
- Points
- 26
per day nag titimes 2 ung amount . mag uumpisa sa 0.01. haanggang 64 day
day amount
1 0.01
2 0.02
3 0.04
4 0.08
Code:
#include <iostream>
#include <math.h>
using namespace std;
int main (void)
{
int ctr;
double result;
for (ctr = 0; ctr <= 64; ctr++)
{
result = pow(2, ctr) / 100;
cout << result << endl;
}
return 0;
}
Last edited: