Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. Scanner sc = new Scanner(System.in);
  2. System.out.println("Veuillez saisir un mot :");
  3. int str = sc.nextInt ();
  4. System.out.println("Vous avez saisi : " + str);
  5.  
  6. int i = 10;
  7.  
  8. if (i < 0)
  9. System.out.println("le nombre est négatif");
  10. else
  11. System.out.println("le nombre est positif");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement