Cariam009
New Coder
I got an homework that tells me to write a program with c that is supposed to(1. Semester):
1. scan 5 integers
2. find out the maximum and minimum sum possible if i only sum 4 of these 5 integers up.
3. this should be done in a singular loop and i dont need to print out the choosen 4 numbers.
I might want to add that we have just learned about loops but dont know about arrays yet.
I have googled ways but they all seemed like including stuff i have not learned about yet.
Does someone have a hint for me on how i could start?
1. scan 5 integers
2. find out the maximum and minimum sum possible if i only sum 4 of these 5 integers up.
3. this should be done in a singular loop and i dont need to print out the choosen 4 numbers.
I might want to add that we have just learned about loops but dont know about arrays yet.
I have googled ways but they all seemed like including stuff i have not learned about yet.
Does someone have a hint for me on how i could start?