def factorial_no
yield
end
n=gets.to_i
factorial_no do
(1..n).reduce(:*)
end
yield
end
n=gets.to_i
factorial_no do
(1..n).reduce(:*)
end
What is interactor? Interactor provides a common interface for performing complex user interactions An interactor is a simple, sin...
No comments:
Post a Comment