C++ Program to Find Sum of First n Natural Numbers

Here I have given C++ program to discover aggregate of first n common numbers. As a matter of first importance, I am perusing estimation of n and afterwards figuring the aggregate utilizing for circle. On the off chance that you have any questions identified with the program, at that point don’t hesitate to ask in … Read more

C++ Program to Find Sum of Digits of a Number

Enter any number:361 Sum of digits is:10

Underneath I have shared C++ program to discover the entirety of digits of a number. For instance, a given number is 238 at that point aggregate of digits will be 13. I am utilizing exceptionally straightforward rationale. On the off chance that we discover mod of any number by 10, at that point, the outcome … Read more