Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class u6 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int n1 = Integer.parseInt(scanner.nextLine());
- int n2 = Integer.parseInt(scanner.nextLine());
- int nEnd = Integer.parseInt(scanner.nextLine());
- int nControl = n2 - (n2 - n1);
- for (int i = 0; i < nEnd; i++) {
- System.out.print("<" + n1 + "-" + nControl + ">");
- while (!(nControl >= n2)) {
- nControl++;
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement