CPPForSchool.com: Flow of Control Set 2: Assignment 2
2.
Write a program to calculate the sum of first 10 natural number.
For this assignment, I went ahead and used a for loop. I am beginning to really see the draw in using a for loop. It uses less code and appears to be more efficient, system wise. With that said, below is my source code along with the output and sample solution and output.
For this assignment, I went ahead and used a for loop. I am beginning to really see the draw in using a for loop. It uses less code and appears to be more efficient, system wise. With that said, below is my source code along with the output and sample solution and output.
Comments
Post a Comment