Advertisement
Guest User

Untitled

a guest
May 19th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement