Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package com.javarush.task.task01.task0127;
  2.  
  3. /*
  4. Число в квадрате
  5. */
  6.  
  7. public class Solution {
  8. public static void main(String[] args) {
  9. //напишите тут ваш код
  10.  
  11. int a = 5;
  12. System.out.println(sqr(a));
  13.  
  14. }
  15.  
  16. public static int sqr(int a) {
  17. return a * a;
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement