To reverse a given number

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 2 Comments

Here is the program to mathematically reverse the entered integer. The program uses simple library functions, and an easy flow. Logic :  The main idea here is to trace the entered number till its length, and slicing up in each of the iterations. The program asks the user to enter the number to reverse. Sets [...]

Program for Armstrong numbers

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 0 Comment

Here is the program to calculate the Armstrong numbers, which will fall within the limit, starting from zero. The program expects the user to enter the upper limit. Definition : Armstrong numbers are the integer numbers , where -the sum of third  power of each digits – equals to the given number itself. Logic :  [...]

Program to find the prime numbers between a given range

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 13 Comments

The program is to find all the prime numbers falls inside the user defined range. A prime number is a one, whose divisors are 1 and the number itself. Logic: This is advanced version of the previous program. Here, user need to enter two numbers as the lower and upper limits for the iteration loop [...]

Program to find the prime numbers below a given number.

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 2 Comments

The program is to find all the prime numbers in the range, which starts from zero and ends at user defined limit. A prime number is a one, whose divisors are 1 and the number itself. Logic: This is a slightly modified version of the previous program. Here, user need to enter the number as [...]

Program to find the perfect numbers between a given range

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 0 Comment

The program is to find all the perfect numbers inside the user defined range. A perfect number is one, whose sum of devisors is equals the number itself. Logic: This is advanced version of the previous program. Here, user need to enter two numbers as the lower and upper limits for the iteration loop to [...]

Program to find the perfect numbers below a given number.

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 0 Comment

The program is to find all the perfect numbers in the range, which starts from zero and ends at user defined limit. A perfect number is a one, whose sum of devisors is equals the number itself. Logic: This is a slightly modified version of the previous program. Here, user need to enter the number [...]

To find the fibonacci numbers below a given number.

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 0 Comment

Program describes an easy way to find the Fibonacci numbers below a given number. Logic:  Fibonacci numbers are the the numbers fall on the Fibonacci series, which grows up accord to Fibonacci rule. The rule is that, the present number in the series is the sum of past number and the number before last. The [...]

Program to find the fibonacci numbers between a given range

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 0 Comment

Here is the slightly modified version of the previous program, which is flexible to find the Fibonacci numbers between the given range. Logic:  Fibonacci numbers are the the members of the Fibonacci series, which grows up accord to Fibonacci rule. The rule states, the present number in the series is the sum of past number [...]

Program for Fibonacci numbers

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 0 Comment

Program describes an easy way to find the Fibonacci numbers below a given number. Logic:  Fibonacci numbers are the the numbers fall on the Fibonacci series, which grows up accord to Fibonacci rule. The rule is that, the present number in the series is the sum of past number and the number before last. The [...]

Program for perfect numbers

Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 2 Comments

Here is a program to find whether the entered number is a perfect or not. A perfect number is a one, whose sum of devisors is equals the number itself. Logic: Here in the program, user need to enter the number to check if it is perfect. The for loop in the program traces the [...]

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup