Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class tt
- {
- public static void main(String[] args)
- {
- Scanner read = new Scanner(System.in);
- int nblignes=read.nextInt();
- read.nextLine(); //j'ai rajouter un read.nextline comme ca tu va a la ligne dans ta prise
- //d'acquisition voir il y avais besoin sur eclypse mais a tester sur france ioi
- String[] texte= new String[(nblignes)];
- // System.out.println(texte.length);
- for(int i=0; i<texte.length;i++){
- // System.out.println(i);
- texte[i]=read.nextLine();
- }
- for(int i=0;i<texte.length;i=i+2){
- System.out.println(texte[i]);
- }
- read.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement