Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class NewClass {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int N[]=new int[3];
- System.out.print("IT:");
- N[0]=sc.nextInt();
- System.out.print("SE:");
- N[1]=sc.nextInt();
- System.out.print("IT:");
- N[2]=sc.nextInt();
- for(int i=0;i<N.length;i++)
- {
- int c=0;
- for (int j = 0; j < N[i]; j++) {
- System.out.print("X");
- c++;
- }
- System.out.print(" "+c+"\n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement