yesno2 function to provide two custom responses.yesno function’s string argument with ... to allow it to take variable arguments. The arguments are first pasted without separators and collapsed using paste0(..., collapse = "") before being output using cat.Implemented yesno function with single string argument.