Saturday, August 13, 2011

Write a program that prompts the user to input a string.?

Write a program that prompts the user to input a string. The program then uses the built-in function 'substr' to remove all the vowels from the string. For example, if str = "There", then after removing all the vowels, str = "Thr". After removing all of the vowels, output the string. Your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.

No comments:

Post a Comment