MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a Java-program to display 1 to 10 values using while loop ?

  1. Home
  2. Java Programs

Write a Java-program to display 1 to 10 values using while loop ?

Write a Java-program to display 1 to 10 values using while loop ?

Program
public class Main
{
    public static void main(String args[])
    {
        int x=1;
        while(x<=10)
        {
            System.out.println(x);
            x++; 
        }
    }
}	

Output:

1
2
3
4
5
6
7
8
9
10





More Questions


57 . Write a Java-program to display the Table using for loop ?
58 . Write a Java-program to display 1 to 10 values using while loop ?
59 . Write a Java-program to display 10 to 1 values using while loop
60 . Write a Java-program to display 1 to n values using while loop
61 . Write a Java-program to display display Even Numbers using while loop
62 . Write a Java-program to display Even Number or Odd Number based on the N value using while loop
63 . Write a Java-program to display Even Number or Odd Number based on the N value using single while loop
64 . Write a Java-program count the number of divisible numbers in a given range(1-100) using while loop ?
65 . Write a Java-program to print Factorial Number using while loop ?
66 . Write a Java-program to print Factorial of upto N Numbers using while loop ?
67 . Write a Java-program to print sum of natural numbers using while loop ?


Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a Java program to accept a float value of number and return a rounded float value

Write a Java program to check whether Java is installed on your computer or not

Write a Java program to print the sum, multiply, subtract, divide and remainder of two numbers

Write a java Program to print N prime numbers and find sum and average

Write a Java program to swap two variables

Python Practice Programs

Write a python program to print most frequent letter in a string

Write a Python program to display the current date and time.

Write a python program to sort list with sorted & lambda

Write a Python Program to Display the multiplication Table.

Write a Python program to print reverse number

Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Java Quiz

Java Quiz - 20

Java Quiz - 2

Java Quiz - 16

Java Quiz - 15

Java Quiz - 4

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs