+ 2
Please help me solve this problem am new here
What is the output of this code? ×=(3%2)+(4//2) Print(×)
10 Respuestas
+ 8
Judith Eziefule ,
Understand the operations used in the line ...
%( modulo) it gives remainder...
//(Floor division) it gives quotient...
The sum of these 2 gets stored in x
And finally x is printed...
Execute each operation in code playground one by one and understand the things....
+ 4
RUN THE CODE to see the output.
Be precise about what you want to know. Tag the relevant programming language.
+ 4
Judith Eziefule What's the challenge?
Without execution of code how do you get to know about the output?
First run the code and still if you face any problem attach your code and provide proper details .
+ 2
You are supposed to execute the code NOW. Look at the output. Then you know the output.
+ 1
"What is the output?"
and
"What do those symbols mean?"
are 2 different things. Be precise about what you really want to know when you ask a question.
+ 1
I told you how you can easily find out. Ho to Code section/ Playground, create a Python code bit, enter your code, click Run
0
RUN wasn't in the challenge it was just stated this way it my very. First challenge and I failed it
0
Thank you all I really appreciate
0
So then miss Liya please "what is the output "
Miss Riya has told me the meaning of the symbols
0
X = (3%2) +(4//2)
3%2 => remainder is 1
4//2 => quotient is 2
X = 1 + 2
X = 3