SHARE
TWEET

test

medim Nov 19th, 2019 (edited) 86 in 338 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   // Задание 1: "Написать программу которая считывает 5-и значное число с клавиатуры и выводит цифры из которого оно состоит. "  //
  2.         /*Scanner scn = new Scanner(System.in);
  3.         System.out.println("Input a five-digit number: ");
  4.         int num = scn.nextInt();
  5.         int a = num / 10000;
  6.         int b = num % 10000 / 1000;
  7.         int c = num % 1000 / 100;
  8.         int d = num % 100 / 10;
  9.         int e = num % 10;
  10.         System.out.println(a);
  11.         System.out.println(b);
  12.         System.out.println(c);
  13.         System.out.println(d);
  14.         System.out.println(e);*/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top