# Programming

### C program to find the area and perimeter of a rectangle

In high school mathematics, the most common formulas of a rectangle are perimeter, area, diagonal, etc. In this tutorial, we will learn how to implement those formulae in the C…

### C program to print name, birthday and city

In this tutorial, we will learn how to format and display personal information inside the console using C programming. To solve this problem we will use the printf function to…

### Javascript Functions

What is Javascript Function Javascript functions are building block of code that is only executed when it is called or invoked. Function plays a very important role in building very…

### Ruby gcdlcm() Method

Ruby gcdlcm() method takes two integer numbers (one as an object and another as a parameter) and returns an array of the GCD and LCM of that two numbers gradually.…

### Ruby integer? Method

Ruby integer? method determines whether a specified number is an integer or not. If the specified number is integer returns true otherwise false. This method can check between two data…

### Ruby lcm() Method

Ruby lcm() method calculates the LCM of two specified numbers. In mathematic LCM stands for least common multiple which means the lowest multiple divisible by both numbers. This method is only…

### Ruby odd? Method

Ruby odd? method is an integer class function that is used to check the specified number whether it is odd or not. Applying this odd method to other data types…

### Ruby magnitude Method

Ruby magnitude method is an integer class function that is used to find the absolute value of a specified integer. This function is the same as the Ruby abs() method.…

### Ruby even? Method

Ruby even? method is an integer class function that is used to check if an integer number is even or not. Applying this method to any other data type including…

### Ruby abs() Method

Ruby abs() method is an integer class function that is used to find the absolute value of an integer number. Applying this method to any other data type raises an…

### Ruby Matrix transpose() Method

Ruby transpose() method is a matrix manipulation method and it is used to find the transpose of a given matrix. To find the transpose of a matrix we have to…

### Ruby clear() Method

Ruby clear() method is an array function that is used to remove all elements of an array and return an empty array. If the method is applied on an empty…

### Ruby at() Method

Ruby at() method is an array function that is used to pop an element from a targeted array also from a specified index. Since the index starts from 0. That…

### Ruby pop() Method

Ruby pop() method is an array function that is used to remove array elements from the end. Using the pop() method one or multiple elements. The pop() function also returns…

### Ruby push() Method

Ruby push() method is a function that helps to push elements at the end of the array. You can push almost all kind of objects using the push method into…