This shows you the differences between two versions of the page.
haas:fall2021:cprog:projects:cnv1 [2020/10/15 12:49] – external edit 127.0.0.1 | haas:fall2021:cprog:projects:cnv1 [2021/09/27 12:01] (current) – wedge | ||
---|---|---|---|
Line 102: | Line 102: | ||
<cli> | <cli> | ||
- | yourpi: | + | yourpi: |
</ | </ | ||
Line 108: | Line 108: | ||
<cli> | <cli> | ||
- | yourpi: | + | yourpi: |
</ | </ | ||
Line 146: | Line 146: | ||
====Primary number (nary(1)) output==== | ====Primary number (nary(1)) output==== | ||
<cli> | <cli> | ||
- | yourpi: | + | yourpi: |
11 13 17 19 23 | 11 13 17 19 23 | ||
- | yourpi: | + | yourpi: |
</ | </ | ||
====Secondary number (nary(2)) output==== | ====Secondary number (nary(2)) output==== | ||
<cli> | <cli> | ||
- | yourpi: | + | yourpi: |
4 6 8 9 10 | 4 6 8 9 10 | ||
- | yourpi: | + | yourpi: |
</ | </ | ||
====Tertiary number (nary(3)) output==== | ====Tertiary number (nary(3)) output==== | ||
<cli> | <cli> | ||
- | yourpi: | + | yourpi: |
12 16 18 20 28 32 | 12 16 18 20 28 32 | ||
- | yourpi: | + | yourpi: |
</ | </ | ||
The execution of the program is short and simple- obtain the input, do the processing, produce the output, and then terminate. | The execution of the program is short and simple- obtain the input, do the processing, produce the output, and then terminate. | ||
- | |||
- | |||
=====Reference===== | =====Reference===== | ||
Line 173: | Line 171: | ||
<cli> | <cli> | ||
- | yourpi: | + | yourpi: |
n-ary(1) from 2 to 50: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 | n-ary(1) from 2 to 50: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 | ||
n-ary(2) from 2 to 50: 4 6 8 9 10 14 15 21 22 25 26 27 33 34 35 38 39 46 49 | n-ary(2) from 2 to 50: 4 6 8 9 10 14 15 21 22 25 26 27 33 34 35 38 39 46 49 | ||
Line 184: | Line 182: | ||
<cli> | <cli> | ||
- | yourpi: | + | yourpi: |
ERROR CHECK | ERROR CHECK | ||
================= | ================= | ||
Line 234: | Line 232: | ||
need: >36 < | need: >36 < | ||
- | yourpi: | + | yourpi: |
</ | </ | ||
Line 252: | Line 250: | ||
<cli> | <cli> | ||
- | lab46: | + | lab46: |
</ | </ | ||