0

Plss help

publipublicc class Solution { /* * Find errors in the following function * Rectify them and submit the code */ public static int max_number(int n){ int maxnum=0; int i=1; while(n/i>=0) { int newnum=(n/(i*10))*i+(n%i); i=i*10; if(maxnum<newnum) newnum=maxnum; } return maxnum; } }

30th Sep 2022, 9:02 AM
shahid
1 ответ
0
Save code in playground and share link here.. Is it full code? No. Where is main method? " publipublicc " ???
30th Sep 2022, 9:07 AM
Jayakrishna 🇮🇳