SHARE
TWEET

Untitled

a guest May 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Main{
  2.  
  3.     public static void main (String[] args){
  4.         int nbcoup = 0
  5.         int seriemax = 0;
  6.        
  7.         Scanner sc = new Scanner(System.int);
  8.  
  9.         System.out.println("Combien de coups voulez-vous ?");
  10.         nbcoup = sc.nextInt();
  11.  
  12.         do{
  13.         if(a = 1){
  14.             System.out.println(";1");
  15.             nbcoup = nbcoup-1;
  16.         }
  17.         if(a = 0){
  18.             System.out.println(";0");
  19.             nbcoup = nbcoup-1;
  20.         }
  21.         ]while(nbcoup > 0);
  22. }
RAW Paste Data
Want to get better at Java?
Learn to code Java in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top