package com.javarush.task.pro.task04.task0414;
import java.util.Scanner;
/*
Хорошего не бывает много
*/
public class Solution {
public static void main(String[] args) {
Scanner scan = new Scanner (System.in);
String name;
int number ;
int a = 0;
do {
name = scan.nextLine();
number = scan.nextInt();
System.out.println(number);
a++;
}
while (number <= 5 || number>=5);
System.out.println(name);
}
}
package com.javarush.task.pro.task04.task0414;
import java.util.Scanner;
/*
Хорошего не бывает много
*/
public class Solution {
public static void main(String[] args) {
Scanner scan = new Scanner (System.in);
String name;
int number ;
int a = 0;
do {
name = scan.nextLine();
number = scan.nextInt();
System.out.println(number);
a++;
}
while (number <= 5 || number>=5);
System.out.println(name);
}
}