menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Tags
Categories
Ask a Question
Given the integer variables x and y , write a fragment of code that assigns the larger of x and y to another integer variable max. if (x > y) max = x; else max = y;
Nidia
asked
Jul 14, 2023
421,311
views
40
votes
40
votes
Given the integer variables x and y , write a fragment of code that assigns the larger of x and y to another integer variable max.
if (x > y)
max = x;
else
max = y;
Computers and Technology
high-school
Nidia
asked
Jul 14, 2023
by
Nidia
2.7k
points
answer
comment
share this
share
0 Comments
Your comment on this question:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Add comment
Cancel
Your answer
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Add answer
Cancel
1
Answer
6
votes
6
votes
Answer:
max = x;
if (y > max) max = y;
Step-by-step explanation:
Ed Bishop
answered
Jul 18, 2023
by
Ed Bishop
3.0k
points
ask related question
comment
share this
0 Comments
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Add comment
Cancel
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
1.6m
questions
2.0m
answers
Other Questions
Price of Tether coin right now? Don't answer if u don't know.
How many pokemon games have you all played i've played 14
Each box on a spreadsheet is called a? row column cell box
This device enables connectivity between two lans or a lan and a larger network.
Genres are useful for many reaseons. What are some explanations you can think of for how genres can be useful to players, game designers, and game publishers? this if for a video game design class worth
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org