Print powers using Anonymous Function in Python

Prerequisite : Anonymous function In the program below, we have used anonymous (lambda) function inside the map() built-in function to find the powers of 2.… Read More »

Program for Identity Matrix

Introduction to Identity Matrix : The dictionary definition of an Identity Matrix is a square matrix in which all the elements of the principal or… Read More »

Program to print hollow rectangle or square star patterns

Hollow rectangle star pattern : The task is print below hollow pattern of given dimension. ******************** * * * * * * * * ********************… Read More »

C program to copy string without using strcpy() function

We can use inbuilt strcpy() function to copy one string to other but here, this program copies the content of one string to another manually… Read More »

Program to find the minimum (or maximum) element of an array

Given an array, write functions to find minimum and maximum elements in it. C++ filter_none edit close play_arrow link brightness_4 code // CPP program to… Read More »

Program for EMI Calculator

EMI stand for Equated Monthly Installment. This calculator is used to calculate per month EMI of loan amount if loan amount that is principal, rate… Read More »

Find if a number is part of AP whose first element and difference are given

Given three non-negative integers a, d and x. Here, a is the first element, d is the difference of an AP (Arithmetic Progression). We need… Read More »

Find Harmonic mean using Arithmetic mean and Geometric mean

Given two numbers, first calculate arithmetic mean and geometric mean of these two numbers. Using the arithmetic mean and geometric mean so calculated, find the… Read More »

Program for triangular patterns of alphabets

Pattern printing has always been an interesting topic in programming languages. It emphasize on the usage of inner and outer loops in nested loops and… Read More »

Find Perimeter of a triangle

Given side (a, b, c) of a triangle, we have to find the perimeter of a triangle. Perimeter : Perimeter of a triangle is the… Read More »

Output of C programs | Set 62 (Declaration & Initialization)

Prerequisite : Declaration & Initialization in C programming Q1. Consider the following code: filter_none edit close play_arrow link brightness_4 code #include <stdio.h> void main() {… Read More »

Program for Fahrenheit to Kelvin conversion

Given a Temperature in Fahrenheit scale, our task is to convert it into Kelvin scale. Examples : Input : F = 100 Output : K… Read More »

C program to print employee details using Structure

In this program, we will read and display details of n employees using Structure. Employee details like Name, age, phone number, salary will be printed.… Read More »

Find n-th term of series 2, 10, 30, 68, 130 …

Given a series 2, 10, 30, 68, 130 … Identify the pattern in the series and find the nth value in the series. Indices are… Read More »