Home > Back-end >  Program calculation () ()=9, parentheses possible combinations, and the output results.
Program calculation () ()=9, parentheses possible combinations, and the output results.

Time:10-10

(a) + ()=9 to write code

CodePudding user response:

No scope for myriad, if, there is a whole a 0 0 to 9 or higher cycle, cycle inside with nine minus the subscript value and the subscript is the result

CodePudding user response:

Public static void main (String [] args) {
For (int I=9. I & gt; Integer. MIN_VALUE; I -) {
Int a=9 - I;
System. The out. Println (" (" + a + ") + (" + I + ")=9 ");
}
}

CodePudding user response:

  • Related