Java Programming Examples
For loop
Program - 4
Write a program to find the sum of all 3 digit odd natural numbers, which are multiples of 5.
Program - 11
Java program to input 10 integers and find the sum of two digit as well as three digit numbers separately
Program - 13
Java program to input 10 integers and display the largest as well as the smallest 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 - 22
Java program to input an integer and check whether it is perfect, abundant or deficient number
Program - 25
Java program to pass an integer as argument and find the sum of odd digits and even digits separately
Program - 27
Java program to pass an integer as argument and print the largest as well as smallest digit
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 - 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