Computer Science, asked by nikhatj5186, 1 year ago

How would you cast the int variable a that is equal to 2 into the string 2?

Answers

Answered by Abc123abc
1
IN JAVA:

int a=2;
String b=Integer.toString(a);
Answered by chiragsingh1107
2

Answer:

in python;

int(a)

Explanation:

answer b

int(a)

Similar questions