Advertisement
Guest User

Untitled

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