daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Oct 16th, 2018 72 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. import java.util.Scanner;
  2. public class anime {
  3.     public static void main(String[] args) {
  4.     Scanner scan = new Scanner(System.in);
  5.     int n = scan.nextInt();
  6.     int i =0;
  7.     while (n!=0) {
  8.         n = scan.nextInt();
  9.         i++;
  10.    
  11.     }
  12.     System.out.println(i);
  13.    
  14.     }    
  15.  
  16.    
  17.             }
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