Advertisement
keymasterviriya1150

Untitled

Oct 5th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1.  
  2. import java.util.Scanner;
  3.  
  4. public class NewClass {
  5.  
  6.     public static void main(String[] args) {
  7.         Scanner sc = new Scanner(System.in);
  8.  
  9.         int N[]=new int[3];
  10.         System.out.print("IT:");
  11.         N[0]=sc.nextInt();
  12.        
  13.         System.out.print("SE:");
  14.         N[1]=sc.nextInt();
  15.        
  16.         System.out.print("IT:");
  17.         N[2]=sc.nextInt();
  18.        
  19.         for(int i=0;i<N.length;i++)
  20.         {
  21.             int c=0;
  22.             for (int j = 0; j < N[i]; j++) {
  23.                 System.out.print("X");
  24.                 c++;
  25.             }
  26.             System.out.print(" "+c+"\n");
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement