Java Programming Code Examples
Java > Java2D Code Examples
C Checking Armstrong Number of n digits -
Check Armstrong Number of n digits. In case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself. Example 407 = 4*4*4 + 0*0*0 + 7*7*7
C Program to Add two Complex Numbers -
This C Program adds two complex numbers. A Complex Number is a number that can be put in the form a + bi, where a and b are real numbers & i is called imaginary unit, where...
C Program Code Concatenate Two Strings -
C programming code concatenate 2 strings in single string. Concatenation of 'two strings' is the process of Joining them together to form a new string. Concatenation appends second
Count Zeros and Ones in a Binary Number -
Program input a number from user and count total number of ones (1s) and zeros (0s) in the given number using bitwise operator. How to count zeros and ones in binary number using
Converting Lowercase String to Uppercase -
C program 'Converting string' from lowercase to uppercase string using loop. Internally in C language every characters are represented as an integer value known as ASCII value. Where
C Code Find LCM of Number by Recursion -
C Language program Find 'LCM' of a Number using Recursion. The following C Program to use recursion, finds the 'LCM'. An 'LCM' is the 'Lowest Common Multiple' of any 2 numbers.
C++ Codes String Matching in Linear Time -
Create the Shift-Lookup-Table. Start with the second character, since the shift to the first is always 0. Search the "string" and return when the first occurrence is found. Searching string
C++ Programming Encrypt & Decrypt File -
To encrypt & decrypt file content in C++, you have to enter the file name with extension to encrypt & decrypt the content present inside the file. Now open that file using the function