Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Main {
- public static void main(String[] args) {
- int a;
- Scanner kbrd = new Scanner(System.in);
- System.out.print("Введите любое целое число: ");
- a = kbrd.nextInt();
- System.out.println("Квадрат введенного числа равен " + a * a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement