
Andy C. answered 09/28/18
Tutor
4.9
(27)
Math/Physics Tutor
I have posted the code in java under Count21.source
you will have to rename the file to Count.java
and then compile it
You can get the algorithm and pseudo code from there..
it's basically a nested while loop...
the inside one traps the input 1,2,3
the outside traps the sum > 21