Program to print the pattern “GFG”

In this article, given the value of n(length of the alphabet) and k(width of the alphabet) we will learn how to print the pattern “GFG”… Read More »

Program to calculate area of Enneagon

Enneagon is a polygon with 9 sides and 9 internal angles. Enneagon is also known as Nonagon. A regular nonagon has an internal angle of… Read More »

Program to Change RGB color model to HSV color model

Given RGB color range, our task is to convert RGB color to HSV color. RGB Color Model : The RGB color model is an additive… Read More »

Program to print numbers in digital form

Given a number n then print number in Digital form. Examples : Input : 5 Output : – – | – – | – -… Read More »

Program for Expressionless Face Pattern printing

Given the value of n, i.e, number of lines, print the pattern. Examples : Input : n = 5 Output : *_*****_*****_* **_****_****_** ***_***_***_*** ****_**_**_****… Read More »

Program for N-th term of Geometric Progression series

Given first term (a), common ratio (r) and a integer N of the Geometric Progression series, the task is to find Nth term of the… Read More »

Area of a Circumscribed Circle of a Square

Given the side of a square then find the area of a Circumscribed circle around it. Examples: Input : a = 6 Output : Area… Read More »

Find the missing integer in an array if mean is given

Given an array of size N-1 and the mean of N elements (one element is not given). We need to find the missing value X… Read More »

How to print without newline in Python?

Generally people switching from C/C++ to Python wonder how to print two or more variables or statements without going into a new line in python.… Read More »

Sum of the series 5+55+555+.. up to n terms

Find the sum up to n terms of the sequence: 5 + 55 + 555 + … up to n. Examples : Input : 2… Read More »

Output of C programs | Set 65 (If-Else)

Prerequisite : Decision making in C Question 1 filter_none edit close play_arrow link brightness_4 code #include”stdio.h” #include”stdlib.h” void reverse(int i) {     if (i > 5)… Read More »

Adding one to number represented as array of digits

Given a non-negative number represented as an array of digits, add 1 to the number ( increment the number represented by the digits ). The… Read More »

Print a matrix in Reverse Wave Form

Given a matrix, print it in Reverse Wave Form. Examples : Input : 1 2 3 4 5 6 7 8 9 10 11 12… Read More »

Area of a square from diagonal length

Given an number d which is length of diagonal of a square, find its area. Examples: Input : d = 10 Output : Area =… Read More »

Print lower triangular matrix pattern from given array

Given an array, print the array in 2D form where upper triangle has vales 0 and lower triangle has values increasing prefix sizes (First row… Read More »