Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program funkcja;
- uses crt;
- var
- a,b,p: integer;
- nww:real;
- begin
- writeln('podaj a');
- readln(a);
- writeln('podaj droga liczbe');
- readln(b) ;
- nww:=a*b;
- while b<>0 do begin
- p:=a mod b ;
- a:=b ;
- b:=p end;
- nww:=nww/a;
- writeln('nwd =',a) ;
- writeln('nww=',nww);
- repeat until keypressed;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement