# Author Archives

#### Excel VBA Interview Questions and Answers

Excel VBA – DataTypes ...

#### COBOL Interview Questions and Answers In Software world, there are different programming languages which are useful for different tasks/applications (web development, mobile development, game...

#### Top 10 Programming Languages in 2020 for new beginners

In Software world, there are different programming languages which are useful for different tasks/applications (web development, mobile development, game...

The least common multiple (L.C.M.) of two numbers is the smallest positive integer that is perfectly divisible by the...

#### Write a R Program to Find LCM

The least common multiple (L.C.M.) of two numbers is the smallest positive integer that is perfectly divisible by the...

The highest common factor (H.C.F) or greatest common divisor (G.C.D) of two numbers is the largest positive integer that...

#### Write a R Program to Find GCD

The highest common factor (H.C.F) or greatest common divisor (G.C.D) of two numbers is the largest positive integer that...

print_factors <- function(x) { print(paste(“The factors of”,x,”are:”)) for(i in 1:x) { if((x %% i) == 0) { print(i) }...

#### Find factors using R Programming Language

print_factors <- function(x) { print(paste(“The factors of”,x,”are:”)) for(i in 1:x) { if((x %% i) == 0) { print(i) }...

Without Formula: num = as.integer(readline(prompt = “Enter a number: “)) if(num < 0) { print(“Enter a positive number”) }...

#### Find sum of natural numbers without/with formula using R Programming Languge

Without Formula: num = as.integer(readline(prompt = “Enter a number: “)) if(num < 0) { print(“Enter a positive number”) }...

An Armstrong number, also known as narcissistic number, is a number that is equal to the sum of the...

#### Check Armstrong number or Not in R Programming Language

An Armstrong number, also known as narcissistic number, is a number that is equal to the sum of the...

year = as.integer(readline(prompt=”Enter a year: “)) if((year %% 4) == 0) { if((year %% 100) == 0) { if((year...

#### Leap year or not in R Programming Language

year = as.integer(readline(prompt=”Enter a year: “)) if((year %% 4) == 0) { if((year %% 100) == 0) { if((year...

The factorial of a number is the product of all the integers from 1 to that number. For example,...

#### Factorial of a number in R Programming Language

The factorial of a number is the product of all the integers from 1 to that number. For example,...

nterms = as.integer(readline(prompt=”How many terms? “)) # first two terms n1 = n2 = 1 count = 2 # check if the number of terms is valid if(nterms <= 0) { print(“Plese enter a positive integer”) } else { if(nterms == 1) { print(“Fibonacci sequence:”) print(n1) } else { print(“Fibonacci sequence:”) print(n1) print(n2) while(count

#### Fibonacci Sequence in R Programming Language

nterms = as.integer(readline(prompt=”How many terms? “)) # first two terms n1 = n2 = 1 count = 2 # check if the number of terms is valid if(nterms <= 0) { print(“Plese enter a positive integer”) } else { if(nterms == 1) { print(“Fibonacci sequence:”) print(n1) } else { print(“Fibonacci sequence:”) print(n1) print(n2) while(count

num = as.integer(readline(prompt = “Enter a number: “)) # use for loop to iterate 10 times for(i in 1:5)...

#### Multiplication Table in R Programming Language

num = as.integer(readline(prompt = “Enter a number: “)) # use for loop to iterate 10 times for(i in 1:5)...