Got some homework here that I need help with.
I've been struggling with trying to get the program to pick out the numbers and compare them using "<" and ">"

Write a program that gets a list of integers from the user and computes the minimal
and maximal number appearing in the list.
0 is a sentinal value

Thanks

Use loops and if statements.

Thanks, got it done now

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.