Multiples of 10
Print multiples of 10 up to N.
package DSA.Flow_control;
import java.util.Scanner;
public class Mulof10 { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { System.out.println("Enter a Number"); int i = sc.nextInt(); while (i % 10 != 0) { System.out.println("Enter a Number"); i = sc.nextInt(); } System.out.println("The Number is multiple of 10"); } catch (Exception e) { System.out.println(e); } }}