Skip to content
Download Android App: Follow Us:
Simple2Code
  • Home
  • Java
    • Java Tutorial
    • Java Programs
    • Java Pattern Programs
  • C
    • C Tutorial
    • C Programs
  • C++
    • C++ Tutorial
    • C++ Programs
  • C#
    • C# Tutorial
    • C# Programs
  • Apps
  • Blog
  • About Us

java loop program

Java Program to Create a Calculator using Switch Case

The program shows how to Create a Calculator using Switch Case in java. The program uses a scanner class to take the inputs from the user. The switch case is mostly used when it is necessary to give options to …

Read moreJava Program to Create a Calculator using Switch Case

Categories Java Programs Tags java loop program

Java Program to Convert Fahrenheit to Celsius and Vice-Versa

The program shows how to convert Fahrenheit to Celsius and Vice-Versa in java using a switch statement. The program uses a scanner class to take the inputs from the user. Switch case is mostly used when it is necessary to …

Read moreJava Program to Convert Fahrenheit to Celsius and Vice-Versa

Categories Java Programs Tags java loop program

Java Program to Calculate Simple Interest, Amount and Compound Interest using a Switch

The program shows how to Calculate Simple Interest, Amount, and Compound Interest using a Switch in java. The program uses a scanner class to take the inputs from the user. The switch case is mostly used when it is necessary …

Read moreJava Program to Calculate Simple Interest, Amount and Compound Interest using a Switch

Categories Java Programs Tags java loop program

Java Program to Calculate the Area of Different Geometric Figures

The program shows how to Calculate the Area of Different Geometric Figures in java using a switch statement. The program uses a scanner class to take the inputs from the user. The switch case is mostly used when it is …

Read moreJava Program to Calculate the Area of Different Geometric Figures

Categories Java Programs Tags java loop program

Java Program to Check for the Negative Number

The program shows how to Check for the Negative Number in java. This program is also a good demonstration to know the working process of the if-else statement. If you do not understand the program, perhaps you may want to …

Read moreJava Program to Check for the Negative Number

Categories Java Programs Tags java loop program

Java Program to List Even Numbers within a Range

The program shows how to List Even Numbers within a Range in java. The program uses a scanner class to take the input of the last number(n) from the user. Therefore it displays all the even numbers between 1 to …

Read moreJava Program to List Even Numbers within a Range

Categories Java Programs Tags java loop program

Java Program to Calculate Average of Elements in an Array

The program shows how to Calculate the Average in an Array element in java. The program uses a scanner class to take the input from the user. It takes the size of an array and the array elements and adds …

Read moreJava Program to Calculate Average of Elements in an Array

Categories Java Programs Tags java array program, java loop program

Java Program to Generate First n Whole Numbers using a do-while loop

The program shows how to Generate First n Whole Numbers in java. The program is pretty simple n is already defined in a program. Although you can use the scanner class to take the inputs from the user. If you …

Read moreJava Program to Generate First n Whole Numbers using a do-while loop

Categories Java Programs Tags java loop program

Java Program to Count Backward of a Number using a do-while loop

In this tutorial, we will write a program to count the number backward in java. The program uses a scanner class to take the input from the user and with a do-while loop, it counts backward and displays the result. …

Read moreJava Program to Count Backward of a Number using a do-while loop

Categories Java Programs Tags java loop program

Java Program to Find the Greatest of Three numbers using if-elseif statement

The following program takes three integers from the user and finds the largest of those three numbers. The program uses if..else if statement to check the greatest of three and print them accordingly. Before we start, click on the links …

Read moreJava Program to Find the Greatest of Three numbers using if-elseif statement

Categories Java Programs Tags java loop program
Older posts
Page1 Page2 Next →

More Topics

  • Java Program to find the sum of the Largest Forward Diagonal
    28 April 2024
  • C Program to search an element in an array using Pointers
    7 January 2024
  • C Program to find the sum of the digits of a number using recursion function
    7 January 2024
  • C program to find factorial of a numberĀ using Ternary operator with Recursion
    6 January 2024
  • C Program to Add Two Numbers Using Call by Reference
    6 January 2024
  • Find the output ab, cd, ef, g for the input a,b,c,d,e,f,g in Javascript and Python
    1 February 2023
  • String Pattern Programs in C
    29 July 2022

Categories

  • C Programs
  • C Tutorial
  • computer fundamentals
  • CPlusPlus Programs
  • CPlusPlus Tutorial
  • CSharp Programs
  • CSharp Tutorial
  • HTML
  • Java Programs
  • Java Tutorial
  • javascript
  • Uncategorised

Simple2Code

  • About Us
  • Privacy Policy
  • Disclaimer
  • Sitemap

Search

Follow Us:
Copyright © 2025 Simple2Code