Minggu, 17 Januari 2010

Source Code Phytagoras

Program Bilangan_Phytagoras;
uses crt;
var a,b,c,d,e:longint;
begin clrscr;
write('masukkan batas angka yang paling besar? '); readln(d);
for a:= 3 to d do
begin
for b:= a to d do
begin
for c:= b to d do
begin
if sqr(a)+sqr(b)=sqr(c) then
writeln(a:7,b:7,c:7);
end;end;
end; readln end.

0 comments:

Posting Komentar

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Enter your email address to subscribe:

Delivered by FeedBurner

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | SharePoint Demo