Question: 3. Define a value-returning function trimBlanks with one string parameter. The function will remove all blanks at the beginning of any string given as parameter
3. Define a value-returning function trimBlanks with one string parameter. The function will remove all blanks at the beginning of any string given as parameter and return the changed string. Do not use the string method trim(...). Call and test your function in a print statement. Test your function using the following arguments: a)" House" b) (just blanks) c) (empty string) 3. Define a value-returning function trimBlanks with one string parameter. The function will remove all blanks at the beginning of any string given as parameter and return the changed string. Do not use the string method trim(...). Call and test your function in a print statement. Test your function using the following arguments: a)" House" b) (just blanks) c) (empty string)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
