Ad

Friday, July 5, 2013

Program To Add a Digits of a Given Number Using C#.Net?

Introduction:
                    In this article i would like to post a article on "Add a Digits of a Given Number".



Description:
                    In Previous article Program to Print Strong Numbers 1 To N Numbers Using C#.Net.This article both depends on For loop it provides awesome logical Thinking.In this article we add the individual digits of an every number and present the entire Sum Value.

Implementation:

                  E.G:123 is a given number Result is 1+2+3=6


 Program:

Add a Digits of a Number
 OutPut:
Add a Digits of a Number 1

Using For LOOP:
Add a Digits of a Number For Loop

Add a Digits of a Number For Loop Output

No comments: