Computer Science, asked by ishasingh1234, 5 months ago

The following is a method/function of some class.
Give the output of the function i) fun (13,2 ) ii) fun(27,3)
Show the dry run/ working.
void fun(int n, int d)
{
int q=0,rem=0;
while(n>1)
{n=n-d;
q=q+1;
}
rem=n;
System.out.println("Result 1="+q);
System.out.println("Result2="+rem)
}​

Answers

Answered by Anonymous
0

Answer:

it is tooo hard ooff

Explanation:

plz bro give it 5 star vote plz... plz... plz...

i am requesting....

Similar questions