mark reilly
/
Counting_Machine_V6
final form
Revision 7:b522dd5a5d39, committed 2018-11-22
- Comitter:
- mark1998
- Date:
- Thu Nov 22 12:23:46 2018 +0000
- Parent:
- 6:21c45f712206
- Commit message:
- final form
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 21c45f712206 -r b522dd5a5d39 main.cpp --- 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 ;