Loopingprogram - than 0"); int x; x =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import javax.swing.JOptionPane; public class Loopingprogram { public static void main(String[]args) { String d; d = JOptionPane.showInputDialog(null, "Enter an integer code that is greater
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: than 0"); int x; x = Integer.parseInt(d); while (x>0) { System.out.println("" + x); x = x - 1; }}}...
View Full Document

Ask a homework question - tutors are online