mark reilly
/
Counting_Machine_V5
final form
Diff: main.cpp
- Revision:
- 7:b522dd5a5d39
- Parent:
- 6:21c45f712206
- Child:
- 8:f047d0a8a18c
--- a/main.cpp Wed Nov 21 16:26:03 2018 +0000 +++ b/main.cpp Thu Nov 22 12:23:46 2018 +0000 @@ -34,7 +34,7 @@ int main() { - //pc.baud(921600); + pc.baud(921600); float a[8]={0,0,0,0,0,0,0,0}; //number of 1p coins int n[8]={0,0,0,0,0,0,0,0}; //amount of 1p coins float v[8]={0.01,0.02,0.05,0.1,0.2,0.5,1,2};// value of coins @@ -185,7 +185,7 @@ system("CLS"); pc.printf("Do you want to see the number of %d %c coins?",v[an],char(163)); - na++; + an++; if (an > 7); { an= 0 ;