Generic Root: of a number is sum of all the digits of the number until we get a single-digit output.
If user input number is 12345, then we add all the individual digits of the number i.e., 1 + 2 + 3 + 4 + 5 = 15. We got 15. Now we add individual digits of number 15 i.e., 1 + 5 = 6. So Generic Root of number 12345 is 6.
Output:
Enter any number :
456791
Generic Root is :5
need an explanation for this answer? contact us directly to get an explanation for this answer