menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write a local function named maxvalue that returns the maximum of two inputs numa and numb.
asked
Nov 4, 2019
211k
views
3
votes
Write a local function named maxvalue that returns the maximum of two inputs numa and numb.
Computers and Technology
college
Emnoor
asked
by
Emnoor
8.5k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
1
vote
Here is a function in Delphi:
function maxvalue(numa, numb: integer): integer;
var
biggest: integer;
begin
if numa >= numb then
biggest := numa;
else
biggest := numb;
end;
Return biggest;
end;
Stephen Roda
answered
Nov 9, 2019
by
Stephen Roda
8.2k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jun 27, 2021
99.3k
views
function maxSum = CalculateSum(userNum1, userNum2, userNum3) maxSum = MaxValue(userNum1, userNum2) + userNum3; end % Define a function MaxValue that returns the largest input value % Function inputs: numA,
Danny Mencos
asked
Jun 27, 2021
by
Danny Mencos
7.7k
points
Computers and Technology
college
1
answer
1
vote
99.3k
views
asked
Jul 5, 2023
30.1k
views
What is the value of the variable named result after this code is executed? numA = 3 numB = 2 result = numA ** numB An error occurred. An error occurred. ANSWER IS 9
NathanAW
asked
Jul 5, 2023
by
NathanAW
8.2k
points
Computers and Technology
high-school
1
answer
0
votes
30.1k
views
asked
Sep 21, 2024
129k
views
What will be the output? class num: def __init__(self,a): self.number = a def __add__(self,b): return self.number + 2 * b.number # main program numA = num(3) numB = num(2) result = numA + numB print(result)
Adrian Stanculescu
asked
Sep 21, 2024
by
Adrian Stanculescu
7.4k
points
Computers and Technology
high-school
1
answer
1
vote
129k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
Seven basic internal components found in a computer tower
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Explain why binary codes are used to represent characters, numbers and symbols :)
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org