## Program to print Step Pattern

The program must accept a string S and an integer N as the input. The program must print the desired pattern as shown below: Examples:… Read More »

## Minimum elements to be added so that two matrices can be multiplied

Given two matrices A and B of order p x q (or q X p) and r x s ( or s X r). The… Read More »

## Program to find nth term of the series 1 4 15 24 45 60 92

Given a number n, the task is to find the nth term of the series 1, 4, 15, 24, 45, 60, 91, 112, 153….. where… Read More »

## Python program to check if given string is vowel Palindrome

Given a string (may contain both vowel and consonant letters), remove all consonants, then check if the resulting string is palindrome or not. Examples: Input… Read More »

## Find cost price from given selling price and profit or loss percentage

Given the Selling Price(SP) and percentage profit or loss of a product. The task is to Calculate the cost price(CP) of the product. Examples: Input:… Read More »

## Check if it is possible to draw a straight line with the given direction cosines

Given three direction cosines l, m and n of a 3-D plane, the task is to check if it is possible to draw a straight… Read More »

## Program to find the Nth term of the series 0, 3/1, 8/3, 15/5……..

Given a number N, the task is to find the Nth term of the following series. 0, 3/1, 8/3, 15/5…… Examples: Input: n=4 Output: 15/5… Read More »

## Program to find the nth term of the series -2, 4, -6, 8….

Given a number N, the task is to find the Nth term of the the following series. -2, 4, -6, 8…… Examples: Input: n=4 Output:… Read More »

## Check whether a + b = c or not after removing all zeroes from a,b and c

Given two integers a and b, the task is to add them to get c. After that remove zeroes from a, b and c and… Read More »

## Print numbers in matrix diagonal pattern

Given an integer N, the task is to print the given pattern. Examples: Input: 3 Output: 1 2 4 3 5 7 6 8 9… Read More »

## Program to multiply two Matrix by taking data from user

Given two matrices, the task is to multiply them. The size and number of elements of matrices are to be read from the keyboard. Examples:… Read More »

## Python Program to print digit pattern

The program must accept an integer N as the input. The program must print the desired pattern as shown in the example input/ output. Examples:… Read More »

## Program for converting hours into minutes and seconds

Given an integer n which is the number of hours, the task is to convert it into minutes and seconds. Examples: Input: 5 Output: Minutes… Read More »

## Minimum value that divides one number and divisible by other

Given two integer p and q, the task is to find the minimum possible number x such that q % x = 0 and x… Read More »

## Print matrix in snake pattern from the last column

Given a matrix of 2-Dimensional array of n rows and n columns. Print this matrix in snake fashion starting from column n-1 as shown in… Read More »