Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Hollow Inverted Full Pyramid - 2

Given the number of rows N, write a program to print the hallow inverted full pyramid pattern similar to the pattern shown below.

1 2 3 4 5 

 1    4 

  1   3 

   1 2 

   1


Last half of List

You are given an integer N as input. Write a program to read N inputs and print a list containing the elements in the last half of the list.


Replacing Characters of Sentence

You are given a string S. Write a program to replace each letter of the string with the next letter that comes in the English alphabet.


Note: Ensure that while replacing the letters, uppercase should be replaced with uppercase letters, and lowercase should be replaced with lowercase letters.


First Prime Number

You are given N inputs. Write a program to print the first prime number in the given inputs.


First Negative Number

Given N inputs, write a program to print the first negative number.


Armstrong numbers between two intervals

Write a program to print all the Armstrong numbers in the given range A to B(including A and B). An N-digit number is an Armstrong number if the number equals the sum of the Nth power of its digits.


W pattern with *

Write a program to print W pattern of N lines using an asterisk(*) character as shown below.


Note: There is a space after each asterisk * character.


Digit 9

You are given N as input. Write a program to print the pattern of 2*N - 1 rows using an asterisk(*) as shown below.


Note: There is a space after each asterisk * character.


Shaded Diamond

Given an integer value N as input, write a program to print a shaded diamond of 2*N -1 rows using an asterisk(*) character as shown below.


Note: There is a space after each asterisk (*) character.


Hollow Rectangle - 2

Write a program to print a rectangle pattern of M rows and N columns using the characters as shown below.


LATEST TUTORIALS
APPROVED BY CLIENTS