j
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);
}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")
Also in Java:
- graal.js pass javascript array to java function
- check if a string is a substring of another string java
- for each loop java
- java android edit text set value
- Spigot API inventory close
- reverse string using recursion java with explanation
- java cannot find file path
- array string java in one line
- java d'intervalle de resultat
- java calculator code
- how to count number of words in a string
- java strin to int
- generate all prime number less than n java
- how to iterate list in java selenium
- java map get the key from value
- java 8 function supplier consumer
- close scanner java
- convert every character in string to arraylist jva
- java replace all xml decoding
- java import text file into arraylist
- how to take input in java
- socket programming in java
- using get in map in java
- creating a program about user asked to enter a number and enters 0 to stop, then calculates the sum of numbers entered, the average, the length of positive numbers and negative numbers entered by the user in java