CPPForSchool.com: Flow of Control Set 2: Assignment 6
6.
Write a program to sum of digits of given integer number.
This assignment was a bit difficult for me because I still yet to get use to using the modulo operator. Nevertheless, after researching the best approach, I soon came to realize that my code mimicked the sample source code. Although there are some minor differences, it pretty much utilizes the same algorithm. Below is my source code and output. Also, I have included the sample source code and output for comparison.
This assignment was a bit difficult for me because I still yet to get use to using the modulo operator. Nevertheless, after researching the best approach, I soon came to realize that my code mimicked the sample source code. Although there are some minor differences, it pretty much utilizes the same algorithm. Below is my source code and output. Also, I have included the sample source code and output for comparison.
Comments
Post a Comment