Java Programming Code Examples
Java > Other Code Examples
Add 2 Distances System Using Structures -
A "Structure Distance" containing two data members (inch and feet) is declared to store the distance in inch-feet system. Here, two structure variables d1 and d2 are created to
Check Palindrome number using recursion -
Recursive function in C to Check Palindrome number. Declare recursive function to check palindrome. First give a meaningful name to our function, say isPalindrome(). Along with
C Program Insertion Sort implementations -
'Insertion Sort Algorithm' picks elements one by one & places it to the right position where it belongs in the "Sorted List of Elements". In C program we have "implemented the same"
Multiply Two Matrix by Multi Dimensional -
In this program, "enter the size "of 2 matrix at first. To multiply two matrices, the number of columns of first matrix should be equal to the "number of rows" to second matrix. C++ Code
C coding to Accessing 2-D Array Elements -
Program code to access every 2-D Array we requires 2 subscript variables. y - Refers the Row number. x - Refers Column number. a[1][0] refers element belonging to first row
Code Finds product of Digits of a Number -
C program code input a number and calculate product of its digits. I have divided the logic to calculate product of digits in three steps. Extract last digit of the number. Multiply the
Add Two Matrix Multi-Dimensional Arrays -
In this program, user is asked to entered the number of rows r and columns c. The value of r and c should be less than 88 in this program. The user is asked to enter elements of two...
Get Sum of Even Odd Numbers in a Range -
C Code declare recursive function to find sum of even number. Lets give a meaningful name to our function, say "sumOfEvenOdd()". Next the function accepts two integer values from