## Menu Driven C++ Program for a Simple Calculator

Problem Statement: Write a menu-driven program using the Switch case to calculate the following: Addition of two numbers Difference between two numbers Product of two… Read More »

- Reach the numbers by making jumps of two given lengths
- Sets of pairs in C++
- Reverse middle words of a string
- C++ Program to concatenate two strings using Operator Overloading
- Iterative Letter Combinations of a Phone Number
- Number of pairs whose sum is a power of 2
- Zig-Zag traversal of a Binary Tree using Recursion
- Smallest Pair Sum in an array
- CSV file management using C++
- Program to print Step Pattern
- Find the Nth term of the series 14, 28, 20, 40,.....
- Sum of nodes at maximum depth of a Binary Tree | Set 2
- Clockwise Spiral Traversal of Binary Tree
- Passing and Returning Objects in C++
- Program to find the kth character after decrypting a string
- Shortest path on a Square
- Program to print the given Z Pattern
- Find Maximum and Minimum element in a Set in C++ STL
- Split a string in equal parts such that all parts are palindromes
- multiset erase() in C++ STL
- User defined derived data types in C++
- MakeFile in C++ and its applications
- How to delete last element from a set in C++
- Iterative Boundary traversal of Complete Binary tree
- C++ Mathematical Functions
- Find the element having different frequency than other array elements
- Sum of Bitwise-OR of all subarrays of a given Array | Set 2
- Sum of minimum elements of all possible sub-arrays of an array
- Finding Floor and Ceil of a Sorted Array using C++ STL
- Nested switch statement in C++

Problem Statement: Write a menu-driven program using the Switch case to calculate the following: Addition of two numbers Difference between two numbers Product of two… Read More »

Enumerated type (enumeration) is a user-defined data type which can be assigned some limited values. These values are defined by the programmer at the time… Read More »

Given a number n, the task is to find the n-th term in series 1, 6, 18, 40, 75, … Example: Input: N = 2… Read More »

Pre-requisite: Type Conversion in C++, Advanced C++ | Conversion Operators Through class conversion, one can assign data that belongs to a particular class type to… Read More »

Given a range [L, R]. The task is to find the total number of Hexadecimal alphabets that are required to write every number in the… Read More »

Given an undirected complete graph of N vertices where N > 2. The task is to find the number of different Hamiltonian cycle of the… Read More »

Given an integer array containing digits from [0, 9], the task is to print all possible letter combinations that the numbers could represent. A mapping… Read More »

Given a Binary Tree, the task is to print the zigzag order of the tree. Examples: Input : 7 / \ 6 5 / /… Read More »

Given a range [L, R] where L ≤ R, the task is to generate a random permutation of the sequence [L, L + 1, L… Read More »

Given the value of ‘N’ and ‘I’. Here, represents the number of internal nodes present in an N-ary tree and every node of the N-ary… Read More »

Given an array arr[], the task is to find the sum of the minimum elements of every possible sub-array of the array. Examples: Input: arr[]… Read More »

Given an array arr[], the task is to find the sum of the maximum elements of every possible sub-array of the array. Examples: Input: arr[]… Read More »

Given a rectangle of height H and width W which has the bottom left corner at (0, 0). The task is to count the number… Read More »

In C++ we can pass class’s objects as arguments and also return them from a function the same way we pass and return other variables.… Read More »

Given two segments [L1, R1] and [L2, R2], the task is to choose two elements x and y from both the ranges (one from range… Read More »