#This program works well def f(x) return 1 if x<=1 return f(x-1)*x end puts f(1000) END{ puts 'Now Exiting' }