Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12171

print numbers N times using recursion [closed]

$
0
0

Here i did names(N-1) then sout(N)after doing this output is 1 , 2 , 3, 4 instead it should be 4, 3 ,2 ,1.when I move the names function that is name(N-1) below the sout(N).then it gives output: 4,3,2,1 which is excatly vice versa of the above


Viewing all articles
Browse latest Browse all 12171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>