Thanks a lot guys, that is the exact type of information I'm looking for. I'm finding I can get my homework problems done but also want to see if there are better ways to do things. I admit loops has had me a bit more confused than the previous chapters.
So here I could just take this whole bit of code out:
And move this to within the loop:Code:printf ("Please enter the first number>> ");
scanf ("%d", &initial);
lowest_num = initial;
highest_num = initial;
Then I will not need to ask for an initial value outside of the loop?Code:lowest_num = 200000000;
highest_num = -20000000;