2
Contributors
3
Replies
5
Views
7 Years
Discussion Span
Last Post by donaldw
0

Absolutely we can help you. Please post the part of your code which is giving you errors and we'll help you troubleshoot it.

0

with 11 it's just how to format the output of the main() so it looks like the picture above, the rest can be done with Eratosthenes' sieve.

with 10 I've absolutely no idea about it

Edited by SSc: n/a

0

with 11 it's just how to format the output of the main() so it looks like the picture above, the rest can be done with Eratosthenes' sieve.

make a for(...) loop to output seven numbers separated by a tab ( \t ) and output a newline after each seven number outputs for however many numbers you need to output.

with 10 I've absolutely no idea about it

Sounds pretty simple; go through the array and check if each successive entry is greater than the previous one. If so, it's in ascending order. If each successive element is less than the previous one, it's sorted in descending order. If the value of the elements goes up and down, then it's unsorted.

Do you have any code written?

Edited by donaldw: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.