Java Program to Generate First n Whole Numbers using a do-while loop1 min read

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 do not know the working process of do-while loop then click the link below.


Example: Java Program to Generate First n Whole Numbers.

Output:


MORE

C Program to Check whether the entered character is capital, small letter, digit or special character

In this tutorial, we will write a program to check whether the entered character is capital, small letter, digit or any special character using C …
Read More

C Program to Check Armstrong Number

In this C programming example, we will write a program to check Armstrong Number in C. We will start with Armstrong Number. Before that, you …
Read More

C Program to Generate Random numbers within a Range

In this tutorial, you will learn to generate random numbers within a range in C programming. But before that, you may go through the topic …
Read More

C Program to Generate Random Numbers

In this C program section, we will learn how to generate random numbers in C programming. Let us start with random numbers. What is Randon …
Read More

Keith Number in Java

In this java programming tutorial, you will learn about Keith Number and its implementation in java. It is frequently asked in Java coding. What is …
Read More

Fascinating Number in Java

In this java program tutorial, we will learn about the Fascinating Number and its implementation through Java. We will check whether the number Fascinating Number …
Read More