Posts by Anubhav Bansal

Author Biographical Info: Not available

C++ Program to print Swastika Pattern

By Anubhav Bansal

In this C++ tutorial, we will see how to print Swastik pattern from given number n, the pattern of n height using loops. Note- N, an odd number (>=5). Print Swastik Pattern Divi.... Read More

Find elements which are present in first array and not in second in C++

By Anubhav Bansal

We are given two arrays and we have to find numbers that are present in the first array, but not present in the second array. Elements that are present in the first array and not i.... Read More

Use push_back for vector pair in C++

By Anubhav Bansal

A vector is a dynamic array that can resize according to the elements inserted or deleted inside the container. In this tutorial, we will be learning how to use push_back for vecto.... Read More

C++ program to find number of digits in Nth Fibonacci number.

By Anubhav Bansal

Fibonacci numbers follow the sequence of adding two previous numbers 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, …….. Find the number of digits Nth Fibonacci no If we input 3.... Read More