String number = "10";
int result = Integer.parseInt(number);
System.out.println(result);
Copy
int intTemp = Convert.ToInt32(Console.ReadLine());
num = '10'
# check and print type num variable
print(type(num))
# convert the num into string
converted_num = int(num)
# print type of converted_num
print(type(converted_num))
# We can check by doing some mathematical operations
print(converted_num + 20)
int num = atoi(a);