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; } }
1 Respuesta
0
Save code in playground and share link here.. Is it full code? No. Where is main method?
" publipublicc " ???