To find the sum of two Matrices

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

Here is the program to find the sum of the two integer matrices. The program asks for the order (M, N) of the matrices. Soon after entering the order, the cursor takes to the proper position in the screen to input the matrices. User need to hit ‘Enter’ button after each entry. Logic :  The [...]

Program to sort the numbers using selection sort

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

Here is the program to sort the given integer in ascending order using selection sort method. Please find the link to the pictorial tutor of the sorting. This program needs to enter the length of the entering array, followed by the array to be sorted. The entered integers are stored in the array A. Logic [...]

Insertion sort in C program

Insertion Sort Demo Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 140 Comments

Here is the program to sort the given integer in ascending order using insertion sort method. Please find the pictorial tutor of the insertion sorting. Logic : Here, sorting takes place by inserting a particular element at the appropriate position, that’s why the name-  insertion sorting. In the First iteration, second element A[1] is compared [...]

Bubble sort program in C

Bubble sort Image Demo Thursday, December 4th, 2008  »  Posted By Ranjith  »  Total 45 Comments

Here is the program to sort the given integer in ascending order using bubble sort method. Please find the pictorial tutor of the bubble sorting. Logic :  The entered integers are stored in the array A. Here, to sort the data in ascending order, any number is compared with the next numbers for orderliness. i.e. [...]

To find the sum of the cos series

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

Here is the program to find the Cosine of the given angle for the user defined accuracy. This is a fast, reliable and robust program, which uses no sophisticated functions but a simple while loop and other math functions. Logic: The program follows the mathematical cosine series, where cosine of the entered radian angle ? [...]

Program to find the sum of the sine series

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

Here is the program to find the Sinusoidal value of the given angle for the user defined accuracy. This is a fast, reliable and robust program, which uses no built in functions but a simple while loop and other math functions. Logic: The program follows the mathematical sine series, where cosine of the entered radian [...]

To find the sum of digits

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

Here is the program to find the sum of the digits of the entered number. Main idea in this program is to slice down the given number into digits and to operate on them. Logic : The program asks the user to enter the number, to find out the sum of its digits. Sets the [...]

To check whether a given number is palindrome or not

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

This is the program to check for the ‘Palindrome’ property of the given number. Palindrome is the instinct property of any literal segment, where the segment reads the same either from left to right or vice versa. For example : 12321 and  LEVEL  are the palindromes as they reads same if we go from right [...]

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 :  [...]

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

Free email signup