c++

c++

C++ program to find the sum of digits of a number

Find the sum of digits of a number in C++.Our program will take one number as input from the user, calculate the sum of its digits and print it out.

Read
c++

C++ program to find out the sum of factorial series 1! + 2! + 3! + 4!...

C++ program to find the sum of a factorial series. Our program will take the value of n from the user and find out the sum of the series.

Read
c++

3 different C++ programs to find permutation and combination nPr and nCr

3 ways in C++ to find the permutation and combination of user-provided numbers. We will use a for loop, while loop and recursive method to find the permutation and combination values.

Read
c++

C++ program to remove the last character from a string in different ways

Different ways in C++ to remove the last character from a string. We will learn to do that by using substr(), size(), resize(), erase() and pop_back() methods with examples for each.

Read