Sha256: 93e47ce49f6e6a3ad14f2c8e9634d54a8e8160f3f5afc7258d462392ef6ca4cd
Contents?: true
Size: 983 Bytes
Versions: 2
Compression:
Stored size: 983 Bytes
Contents
# Copyright (c) 2015 The Mirah project authors. All Rights Reserved. # All contributing project authors may be found in the NOTICE file. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # A simple example of counting # the characters in a name. Part of a test # to kick the tires - @aspleenic puts "Enter a name: " s = System.console.readLine() puts "The name you entered was #{s}" name_length = s.length puts "Your Name is #{name_length} characters long (that includes spaces)"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mirah-0.2.1-java | examples/rosettacode/simple_character_math.mirah |
mirah-0.2.0-java | examples/rosettacode/simple_character_math.mirah |