7 public static void main(String
[] args
) {
9 Scanner sca
= new Scanner(System
.in
);
10 int a
= sca
.nextInt();
11 int b
= sca
.nextInt();
12 int c
= sca
.nextInt();
20 static void over(int a
, int b
, int c
)
30 System
.out
.println("Neni trojuhelnik!");
33 static void obvod(int a
, int b
, int c
)
36 System
.out
.println("Obvod O = " + o
);
39 static void obsah(int a
, int b
, int c
)
41 int o
= (a
+ b
+ c
); // Zatim obvod
42 System
.out
.println("Obsah S = " + o
);
45 static void pravouhly(int a
, int b
, int c
)
47 int sa
= 0, sb
= 0, sc
= 0;
48 if(((a
* a
) + (b
* b
)) == (c
* c
))
55 if(((c
* c
) + (b
* b
)) == (a
* a
))
62 if(((a
* a
) + (c
* c
)) == (b
* b
))
69 if((sa
* sa
+ sb
* sb
) != (sc
* sc
))
70 System
.out
.println("Neni pravouhly!");
This page took 0.27104 seconds and 4 git commands to generate.