Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program Noname31;
- var a,b,c : integer;
- temp, S : real;
- begin
- read(a,b,c);
- if (a+b>c)and(a+c>b)and(b+c>a)
- then
- begin
- writeln('Trikampi sudaryti galima');
- if (a=b)and(a=c)and(b=c)
- then writeln('trikampis lygiakrastis')
- else if (a=b)or(a=c)or(b=c)
- then writeln('trikampis lygiasonis')
- else writeln('trikampis ivairiakrastis');
- end;
- else writeln('trikampis nesudarys');
- temp:=(a+b+c) / 2;
- s:=(temp-a)*(temp-b)*(temp-c); s:=s*temp; s:=sqrt(s);
- writeln('plotas: ', s:5:3);
- Readln(a);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement