Ayush Gupta has Published 527 Articles

Program to print Inverse Diamond pattern on C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:31:01

441 Views

In this tutorial, we will be discussing a program to print given inverse diamond pattern.For this, we will be provided with the value of N. Our task is to print an inverse the diamond pattern according to the height of 2N-1.Example Live Demo#include using namespace std; //printing the inverse diamond pattern ... Read More

Program to print Interesting pattern in C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:26:34

290 Views

In this tutorial, we will be discussing a program to print a given interesting pattern.For this, we will be provided with the half-width of the pattern. Our task is to print a similar pattern according to the given width with its left and right portions being mirror images of one ... Read More

Program to print Hut in C++

Ayush Gupta

Ayush Gupta

Updated on 02-Jan-2020 05:20:47

312 Views

In this tutorial, we will be discussing a program to print a Hut pattern.For this, we will be provided with the width of the hut to be printed (say N). Our task is to print a hut structure of the given width using stars and a gate inside the hut ... Read More

Program to print an inverse pyramid character pattern in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:50:43

312 Views

In this tutorial, we will be discussing a program to print an inverse pyramid character pattern.For this we will be provided with the number of rows containing in the inverted pyramid triangle. Our task is to print the alphabets in the given number of rows to develop the shape of ... Read More

Program to print all the numbers divisible by 3 and 5 in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:46:24

1K+ Views

In this tutorial, we will be discussing a program to print all the numbers divisible by 3 and 5 less than the given number.For this we will be given with a number say N. Our task is to print all the numbers less than N which are divisible by both ... Read More

Program to print all substrings of a given string in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:38:57

3K+ Views

In this tutorial, we will be discussing a program to print all the substring of a given string.For this we will be given with a string or an array of characters. Our task is to print all the substrings of that particular string.Example Live Demo#include using namespace std; //printing all the ... Read More

Program to print all palindromes in a given range in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:36:25

523 Views

In this tutorial, we will be discussing a program to print all palindromes in a given range.For this we will be given the mathematical range in which the palindromes are to be found. Our task is to find all the palindromes in that range and print it back.Example Live Demo#include using ... Read More

Program to print a rectangle pattern in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:33:32

913 Views

In this tutorial, we will be discussing a program to print a given rectangular pattern.For this we will be given with the height and the breath of the rectangle. Our task is to print the rectangle with the given dimensions using the “@” character.Example Live Demo#include using namespace std; void print_rec(int ... Read More

Program to print a pattern of numbers in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:28:59

652 Views

In this tutorial, we will be discussing a program to print a given pattern of numbers.Our task is to make use of looping structure in the code and print the given pattern − 1 232 34543 4567654 567898765Example Live ... Read More

Program to print 2D shapes in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:25:20

474 Views

In this tutorial, we will be discussing a program to print out 2D shapes.For this we will be provided with the various parameters required to make a shape such as radius, side length and side breadth, etc. And our task is to print a shape accordingly with no thickness.Example Live Demo#include ... Read More

Advertisements