Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. public class newClass {
  2. public static void main(String[] args){
  3. Scanner sc = new Scanner(System.in);
  4. int a, b, c;
  5. System.out.println("Введите числа");
  6. // здесь должен быть нужный код
  7. System.out.println("первое число: "+a);
  8. System.out.println("второе число: "+b);
  9. System.out.println("третье число: "+c);
  10. }
  11.  
  12. public class Example
  13. {
  14. public static void main(String[] args)
  15. {
  16. Scanner scanner = new Scanner(System.in);
  17. int a, b, c;
  18. System.out.println("Введите числа");
  19. a = scanner.nextInt();
  20. b = scanner.nextInt();
  21. c = scanner.nextInt();
  22. System.out.println("первое число: "+a);
  23. System.out.println("второе число: "+b);
  24. System.out.println("третье число: "+c);
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement