Can someone pls help me with this output?

Sort:
Avatar of missponyo10

Avatar of Dashbazzz

Sorry, to complicating for me sad.png

Avatar of Dark_Emperor_666

What is this ??

Avatar of missponyo10

Java programming, u have to find the output and today Is my exam

Avatar of Agrolucario35

omg java

Avatar of snowstorm_2

I can not help you here.

Avatar of Agrolucario35

so 1st we're defining integer a=400 then comes integer x, x=1, x<=15 which is true.. then x+=8 means ur adding 8 to x then a-=4 means ur subtracting 4 from a then ur printing the output
note: IDK JAVA BUT THEN IT SEEMS SSIMILAR TO YTHON AND C SO I HAVE TRIED, NOT SURE IF ITS CORRECT

Avatar of xXx_Sola-di-Solace_xXx

what in the Hades-

Avatar of Agrolucario35

Yo sola thats Java programming

Avatar of xXx_Sola-di-Solace_xXx

its gibberish

Avatar of missponyo10
Agrolucario35 wrote:

so 1st we're defining integer a=400 then comes integer x, x=1, x<=15 which is true.. then x+=8 means ur adding 8 to x then a-=4 means ur subtracting 4 from a then ur printing the output
note: IDK JAVA BUT THEN IT SEEMS SSIMILAR TO YTHON AND C SO I HAVE TRIED, NOT SURE IF ITS CORRECT

I know that, but what about the print statement, what to write there? Should I write a + "a " or the a value?

Avatar of GirlWonderingDaLife

:0 idk this stuffy stuff

Avatar of Agrolucario35
missponyo10 wrote:
Agrolucario35 wrote:

so 1st we're defining integer a=400 then comes integer x, x=1, x<=15 which is true.. then x+=8 means ur adding 8 to x then a-=4 means ur subtracting 4 from a then ur printing the output
note: IDK JAVA BUT THEN IT SEEMS SSIMILAR TO YTHON AND C SO I HAVE TRIED, NOT SURE IF ITS CORRECT

I know that, but what about the print statement, what to write there? Should I write a + "a " or the a value?

im pretty sure if they havent given anything then u dont consider it and just write a value
note: idk java so again im not sure if my answer is correct

Avatar of sahildas34

this is similar to python. So I am treating this like python, here is MY question: "what is x on line 2?"

Avatar of Agrolucario35
sahildas34 wrote:

this is similar to python. So I am treating this like python, here is MY question: "what is x on line 2?"

they're defining it as an integer u can see

Avatar of SamuelChess321

lol, Idk

Avatar of LegionChess5

Wait, use Chat GPT!

Avatar of SamuelChess321

lol, yeah

Avatar of missponyo10

My ex are over now

Avatar of SamuelChess321

GOOD happy.png