Ruby program to divide two integer numbers

Posted by Editorial Staff | Updated on | in Ruby.


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

Posted by Editorial Staff | Updated on | in Ruby.


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

Posted by Editorial Staff | Updated on | in Ruby.


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

Posted by Editorial Staff | Updated on | in Ruby.


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

Posted by Editorial Staff | Updated on | in Ruby.


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

Posted by Editorial Staff | Updated on | in Ruby.


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

Posted by Editorial Staff | Updated on | in Ruby.


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 …