For Loop
Java : For Loop Program List
Program [1]
Write a program to find the sum of 1st 10 odd natural numbers.
Program [2]
Write a program to find the sum of 1st 10 even natural numbers.
Program [3]
Write a program to find the sum of all 3-digit even natural numbers.
Program [4]
Write a program to find the sum of all 3 digit odd natural numbers, which are multiples of 5.
Program [5]
Write a program to input an integer and find its factorial.
Program [6]
Write a program to input an integer and print its factors.
Program [7]
Write a program to input an integer and count the number of factors.
Program [8]
java program to input an integer and check whether it is a prime number or not.
Program [9]
java program to input 10 integers and find their sum.
Program [10]
java program to input 10 integers and find the sum of even numbers only.
Program [11]
java program to input 10 integers and find the sum of two digit as well as three digit numbers separately
Program [12]
java program to input 10 integers and display the largest integer
Program [13]
java program to input 10 integers and display the largest as well as the smallest integer
Program [14]
java program to input 10 integers and display the largest even integer
Program [15]
java program to input 10 integers and display the largest even and smallest odd integer
Program [16]
java program to input 10 integers and check whether all the entered numbers are even numbers or not
Program [17]
java program to input 10 integers and check whether all the entered numbers are same or not.
Program [18]
java program to input 10 integers and check whether the entered numbers are in ascending order or not
Program [19]
java program to find the sum of 1st 10 numbers of Fibonacci series
Program [20]
java program to print the first 15 numbers of the Pell series
Program [21]
java program to find the sum of 1st 10 numbers of Lucas series
Program [22]
java program to input an integer and check whether it is perfect, abundant or deficient number
Program [23]
java program to input two integers and check whether it forms an amicable pair or not
Program [24]
java program to pass an integer as argument and find the sum of its digits
Program [25]
java program to pass an integer as argument and find the sum of odd digits and even digits separately
Program [26]
java program to pass an integer as argument and find the average of its digits
Program [27]
java program to pass an integer as argument and print the largest as well as smallest digit
Program [28]
java program to input an integer and remove all the even digits from it
Program [29]
java program to pass an integer as argument and check whether all digits in it are even digit or not
Program [30]
java program to pass an integer as argument and check whether the digits are in ascending order or not
Program [31]
java program to pass an integer as argument and check whether it is Armstrong number or not
Program [32]
java program to input an integer and check whether it is an automorphic trimorphic or automorphic number or no
Program [33]
java program to input an integer and check whether it is Harshad or Niven number or not
Program [34]
java program to input a number and check whether it is a Kaprekar number or not
Program [35]
java program to input two integers and find their Least Common Multiple
Program [36]
java program to input two integers and find their Highest Common Factor
Program [37]
java program to check whether number is a Palindrome or a Perfect number.
Program [38]
java program to check number is buzz if is it then find GCD
Program [39]
java program to check number is a prime and Automorphic or not
Program [40]
java program to input 10 integers and print the second largest number
Program [41]
java program to find the sum of the following series
Program [42]
java program to print the sum of negative numbers, sum of positive even numbers and sum of positive odd numbers
Program [43]
java program for a game of dice is to be simulated for two players, each player gets a chance to throw his dice
Program [44]
java program to input 10 integers and find the sum of two digit as well as threedigit numbers separately
Program [45]
java program to input a number and check and print whether it is a Pronic number or not
Program [46]
java program for Duck number
Program [47]
java program to print denomination of an input amount and also print the number of notes
Program [48]
java program to print fibonacci series up to n terms
Program [49]
java program to check entered number is prime palindrome or not