SHARE
TWEET

Untitled

a guest Oct 12th, 2017 52 in 171 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. import java.lang.String;
  3.  
  4. public class Blabla {
  5.     public static void main(String[] args) {
  6.         byte c = 0;
  7.  
  8.         System.out.println("Введите ваше число:");
  9.         Scanner sc = new Scanner(System.in);
  10.         int inputValue = sc.nextInt();
  11.         long n = inputValue;
  12.  
  13.         while(n > 0) {
  14.             if(n % 10 == 0){
  15.                 c++;
  16.             }
  17.             n = n/10;
  18.         }
  19.         System.out.println(c);
  20.     }
  21. }
RAW Paste Data
Top