+ 2
What is the result to this code
X="a" X*=3 Print(x)
6 Answers
+ 1
The result to this code is aaa
+ 10
In which language?
+ 9
Depends for which compiler you write it but literally
X="a"
X*=3
Print(x)
must to be "UNDEFINED" because usually x in lowercase is not the same X in uppercase
+ 7
If a string is multiplied by an integer, it results in the string repeated the integer number of times.
So, "a" multiplied by 3 returns "a" repeated 3 times i.e. "aaa".
And, it works if you print X but not x.
+ 2
its answer will be aaa I think
+ 2
hm not so sure about that. but all you have to do is plug it in and try