subject

Language: JAVA Given the declarations:

public int num(int a, int b)
{
if (b == 0)
return a;
else if (b > a)
return num(b, a);
else
return num(b, a % b);
}

What would be written by the statement System. out. println(num(12, 27)); ?

a) 0
b) 3
c) 4
d) 12
e) 27

Please explain this if possible--thanks in advance!

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Ted wants to go out to a neighborhood park and shoot pictures of dew drops on grass. he wants to get a low-level angle of the dew drops. which support equipment should ted use? a. mini tripod b. pistol grip c. monopod d. body mount
Answers: 2
question
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What shows the web address of the page that is currently displayed in the workspace? status window toolbar location bar internet box
Answers: 1
You know the right answer?
Language: JAVA Given the declarations:

public int num(int a, int b)
{
if (b ==...
Questions
question
Mathematics, 01.07.2020 20:01
question
English, 01.07.2020 20:01
question
Social Studies, 01.07.2020 20:01
question
Chemistry, 01.07.2020 20:01
question
Mathematics, 01.07.2020 20:01
question
Mathematics, 01.07.2020 20:01
Questions on the website: 13722367