Guest User

Untitled

a guest
Oct 25th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public class Ex1 {
  2. public static void main(String[] args) {
  3. sCalc(3, 4);
  4. }
  5.  
  6. static void sCalc(int a, int b) {
  7. double s = a * b / 2;
  8. System.out.println("Площа прямокутного трикутника: " + s);
  9. }
  10. }
Add Comment
Please, Sign In to add comment