Computer Science, asked by demondew79, 5 months ago

Question 3
The following function havefun() is a part of some class. Give the output for
havefun(char ch, int y) when ch = ‘A’ and y= 5. Show the dry run/working.
void havefun(char ch, int y)
{
if (y< 1) System.out.println(" ");
else
{
ch+= (char) y;
System.out.print(ch+"");
havefun(ch, --y);
System.out.print(ch + " ");
}
}
[5]
PART II (50 marks]
nswer six questions in this part oh​

Answers

Answered by irshadshaikh5683
1

Answer:

first follow me then i will give you ur answer.

Similar questions