How to Create a Function in R

- Multiply the fractional numbers by 100.
- Round the result to one decimal place. You can use the round() function to do this.
- Paste a percentage sign after the rounded number. The paste() function is at your service to fulfill this task.
- Print the result. The print() function will do this.