summaryrefslogtreecommitdiffstats
path: root/Java/WordLength.java
blob: 86d1e09de3c8a46c936586d80d13f88875b1497f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.io.BufferedReader;
import java.io.InputStreamReader;

class WordLength {
    public static void main(String[] args) throws java.io.IOException {
		    int charnum; 
	            BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		    System.out.println("Word");
		    String word = input.readLine();
		    System.out.println("\n");
		    for(charnum=word.length();charnum>0; charnum--){ 
		    System.out.println(word);
		    }
		    
                    
                    
                    

    }
}

//By msglm; Licensed under the AGPL v3