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 10 to 1 values using while loop ?

  1. Home
  2. Java Programs

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

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

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

Output:

10
9
8
7
6
5
4
3
2
1





More Questions


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 ?
68 . Write a Java-program to print sum of Even 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 Find the sum of the digits of a number

Write a Java program to count the number of even and odd elements in a given array

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

Write a Java Program to find Armstrong number

Write a Java program to convert Celsius to Fahrenheit.

Python Practice Programs

Write a Python program to find out what version of Python you are using.

Write a python program to print Nsmallest numbers

Write a python program to open a website using python

Write a Python program that accepts a filename from the user and prints the extension of the file.

Write a python program to print Nlargest numbers

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 - 5

Java Quiz - 14

Java Quiz - 12

Java Quiz - 16

Java Quiz - 9

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