0

Output

What does the output of y X=5 Y=x+3 Print int(str (y) + 2) Print y Please help I’m new and know nothing about coding

16th Mar 2018, 5:00 AM
Michael Tohami
Michael Tohami - avatar
7 Answers
+ 13
U need to specify the language & I can't see that where is the initialization & declaration of variable y . //edit your question
16th Mar 2018, 5:09 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 10
@CipherFox , there is a big difference between Y & y & Str (y) look like some method to me , which he probably forget to mention
16th Mar 2018, 5:48 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 10
well , whats the language first //he didn't mention any language & also int before values to print
16th Mar 2018, 5:51 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
x = 5 y = x + 3 print(y + 2) print(y) The outputs would be 10 and 8. Work on the structure of your syntax.
16th Mar 2018, 5:48 AM
Fox
Fox - avatar
+ 2
@Gaurav. Notice how he wrote "Print". That alone would cause an error. I don't think he's aware that syntax in programming languages is case-sensitive.
16th Mar 2018, 5:50 AM
Fox
Fox - avatar
+ 1
I guess 82, looks like JavaScript
16th Mar 2018, 5:08 AM
Leshark
Leshark - avatar
0
Thanks for your Answers!!
16th Mar 2018, 8:26 PM
Michael Tohami
Michael Tohami - avatar