Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [pascal] pomoc w zadaniu
aleo
post
Post #1





Grupa: Zarejestrowani
Postów: 137
Pomógł: 0
Dołączył: 23.08.2008

Ostrzeżenie: (0%)
-----


Kod
program rysowanie;
uses crt; var x1,y1:longint;ss:string;
procedure pisarz(x,y:longint;s:string);
begin
gotoxy(x,y);
write(s);
end;
begin
clrscr;
   write('podaj x y i s');    read(x1);read(y1);write('podaj s');read(ss);
pisarz(x1,y1,ss);
end.


dlaczego nie wyczytuje zmiennej ss?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
sebekzosw
post
Post #2





Grupa: Zarejestrowani
Postów: 437
Pomógł: 42
Dołączył: 16.04.2007

Ostrzeżenie: (0%)
-----


Mmmmm ;d Pascal (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) I like it! ;]

wszystko jest dobrze:

Kod
program zad4;

uses crt;
var d,e,f:real;

function min3(a,b,c:real):real;
        begin
                if (a<b) AND (a<c) then min3:=a
                else if b<c then min3:=b else min3:=c;

        end;


begin
        writeln('podaj a, b, c ');
        readln(d,e,f);
        writeln('najmniejsza wartosc ',min3(d,e,f):2:0);
        readln;
end.


trochę skróciłem ;]

Ten post edytował sebekzosw 18.05.2009, 08:13:34
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 18:56