daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. import java.util.*;
  3.  
  4.  
  5.  
  6. public class selonsi{
  7.    
  8.     /**
  9.      * * @param args
  10.      *
  11.      */
  12.      public static void main(String[] args) {
  13.          // TODO auto-generated method stub
  14.          String Nom;
  15. int Anc;
  16.  
  17.  
  18. Scanner sc = new Scanner (System.in);
  19.  
  20. System.out.println("Veuillez saisir le nom");
  21. String Nom1 = sc.nextLine();
  22.  
  23. System.out.println("Veuillez saisir le nombre d'années d'anciennetés");
  24. int Anc1 = sc.nextInt();
  25.  
  26. //
  27.  
  28. int i= 15;
  29. if (i < 0 ){
  30.   System.out.println("+Nom1+"+ "Alors la prime d'anciennetés est de 0 euros !");      
  31. }
  32.  
  33. else if( i < 10 ){
  34.   System.out.println("Alors la prime d'anciennetés est de 100 euros!");          
  35.  
  36. }
  37.      }
  38. }
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