Java program to determine whether a given number is a palindrome number or not

Problem: Write a program to input a number from the user and tell whether it is a palindrome number or not. A palindrome number is a number that is same after reverse. For example: 545, 151, 34543. 343, 1123211 are palindrome numbers. Code: 1 2 3 4 5 6 7 8 9 10 11 12 … Read more Java program to determine whether a given number is a palindrome number or not

Java program to determine whether the given number is an armstrong number or not

Problem: Input a number from the user and tell whether it is an armstrong number or not. Armstrong number is a number which is equal to the sum of cubes of its digits.  For example 371 is an armstrong number because: 33 73 13=27 343 1=371 In the same way 0 and 1 are also … Read more Java program to determine whether the given number is an armstrong number or not

Java program to determine if there are exactly three question marks between each pair of numbers that add to 10 in the given string

It is very interesting problem I got as a screenshot I captured from somewhere I do not remember. The screenshot tells that the problem is from CoderByte. I can not give you the link to the problem because I do not know where it is on the website. I am presenting here the problem with … Read more Java program to determine if there are exactly three question marks between each pair of numbers that add to 10 in the given string

Java program to input some integers from the user and display them in descending order

In this program we will input some integers from the user and display them in descending order on the screen. But we have a condition that we have to use less variables and loops in the program and only one array.Problem: Write a program that inputs some integers from the user and displays them in … Read more Java program to input some integers from the user and display them in descending order