August 13, 2011

{RubyTips} Tip for calculator (Lesson 5} Set boundaries

LESSON LINK: Link
If you want to set a boundary for a variable or etc. you can use .. or ... to set them.
For example, let's say you wanted to set a boundary for the numbers 1~5. Then you could either do:
1..5 or 1...6.
The 1..5 displays until 1~5 and 1...5 displays up to 1~4.
You could also use this for alphabet letters.

Hope this helps.

Sincerely yours, Admin

No comments:

Post a Comment

Free Website templatesFree Flash TemplatesRiad In FezFree joomla templatesSEO Web Design AgencyMusic Videos OnlineFree Wordpress Themes Templatesfreethemes4all.comFree Blog TemplatesLast NewsFree CMS TemplatesFree CSS TemplatesSoccer Videos OnlineFree Wordpress ThemesFree Web Templates