Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by sanyuktatanwar ( 7 years ago )
class Geeks
{
static void maxValue(String str)
{
//Your Code here
BigInteger var;
var=BigInteger.valueOf((int)str.charAt(0)-'0');
for(int i=1;i<str.length();i++){
BigInteger temp=BigInteger.valueOf((int)str.charAt(i)-'0');
var=var.multiply(temp).max(var.add(temp));
}
System.out.println(var);
}
}
Revise this Paste