sboy
0
Q:

j

def hexConvert (x):
    return int(x, base)

x = str(input("input value to convert to decimal: "))
base = int(input("Base of value to be converted to decimal: "))
print(x, " in base ", base, " = ", hexConvert(x), " in decimal")
0
import java.util.*;
class cool
{
  Scaner sc = new Scanner(System.in);
  System.out.println("Enter a decimal");
  double a = sc.nextDouble();
  Systrem.out.println("The numver u enterd is " + a);
}
-1

Related

New to Communities?

Join the community