Nested for Loop

Java : Nested for Loop Program List




Program [1]

Write a program to input 10 integers and find the sum of the prime numbers only.


View Solution


Program [2]

Write a program to input 10 integers and find the average of the prime numbers only.


View Solution


Program [3]

Write a program to input 10 integers and find the sum of the perfect numbers only.


View Solution


Program [4]

Write a program to input 10 integers and find the average of the perfect numbers only.


View Solution


Program [5]

Write a program to input 10 integers and find the largest prime number if any.


View Solution


Program [6]

Write a program to input 10 integers and find the smallest perfect number if any.


View Solution


Program [7]

Write a program to generate all 2 digit prime numbers.


View Solution


Program [8]

Write a program to generate all perfect numbers between 1 to 100.


View Solution


Program [9]

Write a program to generate all 3 digit palindrome numbers.


View Solution


Program [10]

WAP to Input an integer and check whether it is a special number or not.

A special number is such a number whose sum of the factorials of each digit is the number itself. For example, 145 is a special number because 1! + 4! + 5! = 1 + 24 +120 = 145. Special numbers are also called factorion.


View Solution


Program [11]

Write a program to input a number and check whether it is a magic number or not. If you iterate the process of summing the squares of the decimal digits of the number, and if this process terminates in 1, then the original number is called a magic number. For example 55=> (5+5)=10=>(1 +0)=1.


View Solution


Program [12]

Write a program to input an integer as argument, and print the number by having the digits arranged in ascending order.


View Solution


Program [13]

Write a program to pass an integer as argument, and check whether all digits in it are unique or not.


View Solution


Program [14]

Write a program to pass an integer as argument, and print the frequency of each digit in it.


View Solution


Program [15]

Write a program to input 10 numbers and print the largest prime number if any.


View Solution


Program [16]

Write a program to generate all 2 digit twisted prime number. Twisted prime number is a number which is prime and its reverse is also prime. Example 13 and 31.


View Solution


Program [17]

WAP to Input an integer and form a new number where the digits are in ascending order.


View Solution


Program [18]

Write a program to pass an integer as argument and print the second largest digit


View Solution