Java Programming Code Examples
Java > Learning Code Examples
Account
Finding ASCII Value of a Character in C++ -
A character variable holds "ASCII value" (an "integer number" between 0 and 127) rather than that character itself in C programming. That value is known as ASCII value. Example
Count Occurrence Positive Zero Negative -
We have to enter some set of numbers. Now to find occurrence of positive, negative, zero from the given set of numbers, just check all the numbers using for loop whether number
Read a String & Find The Sum of All Digits -
Program takes a String containing both digits and alphabet as input and finds the sum of all digits in the string. Take the string containing both 'digits and alphabet' as input and store it
C Program Find Day when a Date is given -
Don't U know that there is no month greater than 12. Enter valid month Once again enter the Date Month Year. Fool, Invalid date in February of non leap year. The maximum...
Reversing Numbers in C++ Programming -
'C++ program' in which user enter a number, program reverse it and display the reversed number on the console. If the 'input number' is 12345 Then reversed number will be 54321
Find Armstrong Numbers between 1 to N -
The Armstrong Number is a n-digit number that is equal to the sum of nth power of its digits. 407 = 4^3 + 0^3 + 7^3 = 407 is. Input upper limit to print Armstrong number from
Call Simple Programs for Functions in C++ -
A function is like a black box. It takes in input, does something with it, and then spits out an answer. We have some "terminology" to refer to functions: A function, call it f, and that uses
C Programming Codes Displaying a Table -
C Language code how to display a table in C programming language is more or less similar to that of counting. We use only one iteration and increment it with value of which table is