Ayush Gupta has Published 530 Articles

Program to print a rectangle pattern in C++

Ayush Gupta

Ayush Gupta

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

871 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

609 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

440 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

Program to print ‘N’ alphabet using the number pattern from 1 to n in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:17:18

207 Views

In this tutorial, we will be discussing a program to print ‘N’ alphabet using the number pattern from 1 to n.For this we will have to print the english alphabet N. Our task is to determine the size of the letter and print it back using the numbers from 1 ... Read More

Program to multiply two matrices in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:08:51

503 Views

In this tutorial, we will be discussing a program to multiply two matrices.For this we will be given with two matrices and our task is to print the product of two those matrices. The only condition is that the number of columns of first matrix should be equal to the ... Read More

Program to make a histogram of an array in C++

Ayush Gupta

Ayush Gupta

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

3K+ Views

In this tutorial, we will be discussing a program to make a histogram by the data given inside an array.For this, we will be provided with integer values inside an array. Our task is to plot a histogram keeping the value of both coordinates x and y equal to the ... Read More

Program to invert bits of a number Efficiently in C++

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 10:02:48

376 Views

In this tutorial, we will be discussing a program to invert bits of a number efficiently.For this we will be given with a non-negative number. Our task is to convert the number in the binary format, invert the binary bits of the number. And then finally print the decimal equivalent ... Read More

Program to Interchange Diagonals of Matrix in C program

Ayush Gupta

Ayush Gupta

Updated on 19-Dec-2019 08:12:16

238 Views

In this tutorial, we will be discussing a program to interchange the diagonals of a given matrix.For this, we will be given with a square matrix of the order n*n. Our task is to interchange the elements in the two diagonals of the matrix and then return the new matrix.Example Live ... Read More

C++ Program to implement t-test

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 11:26:46

955 Views

In this tutorial, we will be discussing a program to implement t-test.The t-test of the student’s T test is used to compare two means and tell if both of them are similar or different. Along with this, t-test also helps to determine how large the differences are to know the ... Read More

C++ Program to implement standard error of mean

Ayush Gupta

Ayush Gupta

Updated on 03-Dec-2019 11:25:42

278 Views

In this tutorial, we will be discussing a program to implement standard error of mean.Standard error of mean is the estimation of sample mean dispersion from population mean. Then it is used to estimate the approximate confidence intervals for the mean.Example#include using namespace std; //calculating sample mean float calc_mean(float ... Read More

Advertisements