|
more than 450 programs for free
|
![]() English |
![]() Slovensky |
![]() Česky |
![]() Šarišsky |
|
Category: Homework in Pascal Program: Sucin.pas File exe: Sucin.exe Displays the result of the multiplication of numbers.
Views: 683x
{ SUCIN.PAS Copyright (c) TrSek alias Zdeno Sekerak } { Zobrazi sucin cisel } { Vstup : postupnost cisel } { Vystup: sucin vsetkych cisel } { } { Datum:10.04.2000 http://www.trsek.com } program sucin (input, output); var a,s : integer; begin s := 1; writeln ('zadavaj cisla postupnosti (koniec je 7)'); repeat write ('zadaj a: '); readln (a); if a <> 7 then s := s * a; until a = 7; writeln ('sucin cisel postupnosti je ', s); readln; end. [Run] [Save] [Print] [Send e-mail] |
|