Getting zeros for all my output
- A percentage is a floating number, so you need to do floating point arithmetic.
- Don't make your counters floating point variables. Just multiple them by 1.0 in your expression when outputting.
This topic: CenterForComputing
> WebHome >
Syllabi >
CSC121SylS2023 >
CSC121S2023Lab03 > CSC121S2023Lab3H3
Topic revision: r1 - 2022-12-29 - cathybareiss