## Interchange elements of first and last rows in matrix

Given a 4 x 4 matrix, we have to interchange the elements of first and last row and show the resulting matrix. Examples : Input… Read More »

## Program for Surface Area of Octahedron

Given the sides of Octahedron then calculate the surface area. Examples: Input : 7 Output : 169.741 Input : 9 Output : 280.59 Recommended: Please… Read More »

## Python Dictionary

Dictionary in Python is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold… Read More »

## Find speed of man from speed of stream and ratio of time with up and down streams

Program to find the speed of man in km/hr, given the speed of stream in km/hr. Assume that the man takes n times (where n… Read More »

## Python 3 | Program to print double sided stair-case pattern

Below mentioned is the python 3 program to print the double sided stair case pattern. Examples: Input : 10 Output : * * * *… Read More »

## Python | Print an Inverted Star Pattern

Here we are going to print inverted star pattern of desired sizes. Examples: 1) Below is the inverted star pattern of size n=5 (Because there… Read More »

## Solid square inside a hollow square | Pattern

Given the value of n, print a hollow square of side length n and inside it a solid square of side length (n – 4)… Read More »

## Program to calculate GST from original and net prices

Given Original cost and Net price then calculate the percentage of GST Examples: Input : Netprice = 120, original_cost = 100 Output : GST =… Read More »

## Sum of series 2/3 – 4/5 + 6/7 – 8/9 + ——- upto n terms

Given the value of n, find the sum of the series (2 / 3) – (4 / 5) + (6 / 7) – (8 /… Read More »

## Sum of even numbers at even position

Given an array of size n .The problem is to find the sum of numbers which are even and are at even index. Examples: Input… Read More »

## Area of square Circumscribed by Circle

Given the radius(r) of circle then find the area of square which is Circumscribed by circle. Examples: Input : r = 3 Output :Area of… Read More »

## Program to print mirror image of Swastika Pattern

Given the number of rows and columns, print the mirror image of swastika pattern. Note : The number of rows and columns should be same… Read More »

## Print intermediate values in an array

Given an integer array, print the intermediate values between current index element and successive next index elements of array. Examples: Input : arr[] = {… Read More »

## Program for Surface area of Dodecahedron

Given the edge of the dodecahedron calculate its surface area. Surface area is the amount of space that all the faces of the shape takes… Read More »

## Power of a lens

Write a program to determine the power of a lens . Power of a lens is its ability to bend light . For a convex… Read More »