/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */packageejercicios;importjava.util.Scanner;/** * * @author roshka */publicclassEjercicio08{publicstaticvoidmain(String[]args){intvalor;Scannerscr=newScanner(System.in);do{System.out.println("Ingrese su valor: ");valor=scr.nextInt();}while(valor<=0);System.out.println("Su valor: "+valor);}}