Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class newClass {
- public static void main(String[] args){
- Scanner sc = new Scanner(System.in);
- int a, b, c;
- System.out.println("Введите числа");
- // здесь должен быть нужный код
- System.out.println("первое число: "+a);
- System.out.println("второе число: "+b);
- System.out.println("третье число: "+c);
- }
- public class Example
- {
- public static void main(String[] args)
- {
- Scanner scanner = new Scanner(System.in);
- int a, b, c;
- System.out.println("Введите числа");
- a = scanner.nextInt();
- b = scanner.nextInt();
- c = scanner.nextInt();
- System.out.println("первое число: "+a);
- System.out.println("второе число: "+b);
- System.out.println("третье число: "+c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement