Java Program to print ASCII Character with Values

Java Program to print ASCII Character with Values

In Java, to print ASCII (American Standard Code for Information Interchange) character with values we can use looping concepts such as while loop or for loop and we can also achieve ASCII character with value without using any methods or loops. Java internally converts the character value to an ASCII value. ASCII value is a … Read more

Java program to Check Prime number

Java program to Check Prime number

In Java, to check whether a given number is prime or not we can use loop concepts such as while loop and for loop. Prime number is a number that is divisible by 1 and itself. For example 2, 3, 5, 7, 11,….. are prime numbers. But 4, 6, .. are not because it is … Read more

Java Program to Check Armstrong Number

Java Program to Check Armstrong Number

In Java, to check a given number is Armstrong or not we can use loop concepts such as while loop or for loop. Armstrong numbers are positive n-digit numbers that are equal to the sum of their digits’ nth powers. Here n is the count of digits in input number. For example 153 is an Armstrong … Read more

Java Program to Check Strong number

Java Program to Check Strong number

In Java, to check a given number is strong or not we can use loop concepts such as while loop or for loop. For given integer input value, find the sum of the factorials of individual digits. If sum of individual factorials of digits is equal to the original number we say that is a … Read more