Write a linux shell program to perform find the sum of the digits of a given number

Find the sum of the digits of a given number



Code:


Output:


-----------------------------------
Sum of Digits
-----------------------------------
Enter the n value
123

The Sum of Digits is 6 

1 comment:

Powered by Blogger.