Program for Armstrong Number in Java

Armstrong number is a digit number with the end goal that the whole of digits raised to the power n is equivalent to the number. For instance: 153 is Armstrong number on the grounds that here n=3 and 13+53+33=153. 120 isn’t Armstrong number on the grounds that 13+23+03!=120. Underneath I have shared a Java program … Read more

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