Difference: CSC121S2023Lab5H5 ( vs. 1)

Revision 12023-01-31 - cathybareiss

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CSC121S2023Lab05"

getValidResponse

  • This is a loop using a priming read and isValid. More is done below (you might need to scroll)















  • get a string from the user
  • while it is not valid
    • state that only valid strings are allowed
    • get a string from the user
  • return the string
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback