Public Static Void Fun Int M Int N N 0 Fun M 1 N 1 Systemprintf D M Fun M 1 N 1 S Java Cod Q43865368
public static void fun(int m,int n){
if(n>0){
fun(m-1,n-1);
System.our.printf(“%d”,m);)
fun(m-1,n-1);
}}
It’s a java code. Can you find the output and PLEASE explainwell how this code works because i can not understand how itsworking. thank you
Expert Answer
Answer to public static void fun(int m,int n){ if(n>0){ fun(m-1,n-1); System.our.printf(“%d”,m);) fun(m-1,n-1); }} It’s a java cod…
OR