Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Ex1 {
- public static void main(String[] args) {
- sCalc(3, 4);
- }
- static void sCalc(int a, int b) {
- double s = a * b / 2;
- System.out.println("Площа прямокутного трикутника: " + s);
- }
- }
Add Comment
Please, Sign In to add comment