Remove vowels from a string

Revision as of 07:21, 25 July 2020 by CalmoSoft (talk | contribs) (Created page with "{{draft task}} Remove vowels from a string =={{header|Ring}}== <lang ring> load "stdlib.ring" str = "Ring Programming Language" see "Input : " + str + nl for n = 1 to len(st...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Remove vowels from a string

Remove vowels from a string is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Ring

<lang ring> load "stdlib.ring" str = "Ring Programming Language" see "Input : " + str + nl for n = 1 to len(str)

   if isVowel(str[n])
      str = substr(str,str[n],"")
   ok

next see "String without vowels: " + str + nl </lang>

Output:
Input : Ring Programming Language
String without vowels: Rng Prgrmmng Lngg