Computer Science, asked by dhanviii13, 2 months ago

public String print(String s,int i)
{
if(i<0)
return("");
char ch=s.charAt(i);
if(ch=='A'||ch=='E'||ch=='|'||ch=='0'||ch=='U')
return(ch + print(s,i-1));
else
return(print(s,i-1));
}
public void func(int n)
{
if(n>40)
return;
if(n%2==0)
{
int r=n*2/4;
func();
System.out.println();
}
}
a) What will be the output of the function func(int n) when n=40?
b) What will the function print(String s,int i) return, when s="APPLICATION” and i=10?​

Answers

Answered by ushadubey555
0

Answer:

uwubeujbejdjdenndjsj

iaisgtwy8oamns

Explanation:

{

int r=n*2/4;

func();

System.out.println();

}

}

a) What will be the output of the function func(int n

Similar questions