Ruby program to divide two integer numbers

By Editorial Staff in Ruby. Updated on


This program takes two integers as input and store in a separate variables num1 and num2. After the calculation, the result will be stored in another variable result and it will print the result. Ruby …

Ruby program to multiply two integer numbers

By Editorial Staff in Ruby. Updated on


This program takes two integers as input and store in a separate variables num1 and num2. After the calculation, the result will be stored in another variable result and it will print the result. Ruby …

Ruby program to subtract two integer numbers

By Editorial Staff in Ruby. Updated on


This program takes two integers as input and store in a separate variables num1 and num2. After the calculation, the result will be stored in another variable subtract and it will print the result. Ruby …

Ruby program to add two integer numbers

By Editorial Staff in Ruby. Updated on


This program takes two integers as input and store in a separate variables num1 and num2. After the calculation, the result will be stored in another variable sum and it will print the result. Ruby …

Ruby if, else and unless statement

By Editorial Staff in Ruby. Updated on


Ruby if, else and unless statement: The if expressions execute a single statement or a group of statements if a certain condition is met. It can not do anything if the condition is false. For …

Ruby Strings Methods Ultimate Guide

By Editorial Staff in Ruby. Updated on


Ruby strings: A string is a sequence of one or more characters that may consist of letters, numbers, or symbols. Strings in Ruby are objects, and unlike other languages, strings are mutable, which means they …

Ruby program to print Hello World

By Editorial Staff in Ruby. Updated on


Here we are sharing a ruby program to print Hello World with the output. The Hello World! program is a good way to get started with Ruby programming language. Ruby is a dynamic, open source …