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++

C++ program to find permutation and combination npr and ncr

C++ program to find permutation and combination npr and ncr. The program will take values of n and r as input from the user and find out the required output.

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