Home / Programs / Area of Rectangle
Programming Example

Area of Rectangle

👁 1,161 Views
💻 Practical Program
📘 Step by Step Learning
Area of Rectangle in R programming Language

Program Code

height <- 2
width <- 3
area <- height * width
area

Output

> area
[1] 6

Explanation

This program shows you how to calculate the area of Rectangle in R programming Language

How to learn from this program

First read the algorithm, then study the program code line by line. After that, compare the code with the output and finally go through the explanation. This approach helps learners understand both the logic and the implementation properly.