-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathuchtauchburchak.pas
44 lines (34 loc) · 1.18 KB
/
uchtauchburchak.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{*******************************************************}
{ }
{ Abduraimov Mo'minjon @DelphiGuru }
{ }
{ Copyright(c) 2016-2017 Mo'minjon Abduraimov }
{ 1.13.2017; 1:40PM }
{ }
{ O'qing, O'rganing, Dasturlang va Dunyoni O'zgartiring!}
{ }
{*******************************************************}
// Uzunliklari berilgan uchta kesmadan uchburchak hosil qilish mumkin yoki
// mumkin emasligini aniqlovchi dastur tuzing!
program UchtaKesma_Uchburchak;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils;
var
a, b, c: Real;
begin
try
Write('a = '); ReadLn(a);
Write('b = '); ReadLn(b);
Write('c = '); ReadLn(c);
if (a+c>c) AND (a+c>b) AND (b+c>a) then
WriteLn('Uchburchak hosil bo`ladi')
else
WriteLn('Uchburchak hosil bo`laolmaydi');
ReadLn;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.