-
Data: 2017-02-21 20:17:52
Temat: Re: Mnozenie
Od: m...@g...com szukaj wiadomości tego autora
[ pokaż wszystkie nagłówki ]On Monday, November 23, 1998 at 9:00:00 AM UTC+1, AD wrote:
> Czesc
> Napisalem program do mnozeni dwoch liczb o max zakresie do 10 (szkolna
> tabliczka mnozenia). Co o nim sadzicie?
>
>
> program mnozenie;
>
> var
> i, j, iloczyn : integer;
>
> begin
> writeln('Mnozenie dwoch liczb do 10');
> write('Podaj pierwsza liczbe: ');
> readln(i);
> write('Podaj druga liczbe: ');
> readln(j);
> if (i = 1) and (j = 1) then iloczyn:=1;
> if (i = 1) and (j = 2) then iloczyn:=2;
> if (i = 1) and (j = 3) then iloczyn:=3;
> if (i = 1) and (j = 4) then iloczyn:=4;
> if (i = 1) and (j = 5) then iloczyn:=5;
> if (i = 1) and (j = 6) then iloczyn:=6;
> if (i = 1) and (j = 7) then iloczyn:=7;
> if (i = 1) and (j = 8) then iloczyn:=8;
> if (i = 1) and (j = 9) then iloczyn:=9;
> if (i = 1) and (j = 10) then iloczyn:=10;
> if (i = 2) and (j = 1) then iloczyn:=2;
> if (i = 2) and (j = 2) then iloczyn:=4;
> if (i = 2) and (j = 3) then iloczyn:=6;
> if (i = 2) and (j = 4) then iloczyn:=8;
> if (i = 2) and (j = 5) then iloczyn:=10;
> if (i = 2) and (j = 6) then iloczyn:=12;
> if (i = 2) and (j = 7) then iloczyn:=14;
> if (i = 2) and (j = 8) then iloczyn:=16;
> if (i = 2) and (j = 9) then iloczyn:=18;
> if (i = 2) and (j = 10) then iloczyn:=20;
> if (i = 3) and (j = 1) then iloczyn:=3;
> if (i = 3) and (j = 2) then iloczyn:=6;
> if (i = 3) and (j = 3) then iloczyn:=9;
> if (i = 3) and (j = 4) then iloczyn:=12;
> if (i = 3) and (j = 5) then iloczyn:=15;
> if (i = 3) and (j = 6) then iloczyn:=18;
> if (i = 3) and (j = 7) then iloczyn:=21;
> if (i = 3) and (j = 8) then iloczyn:=24;
> if (i = 3) and (j = 9) then iloczyn:=27;
> if (i = 3) and (j = 10) then iloczyn:=30;
> if (i = 4) and (j = 1) then iloczyn:=4;
> if (i = 4) and (j = 2) then iloczyn:=8;
> if (i = 4) and (j = 3) then iloczyn:=12;
> if (i = 4) and (j = 4) then iloczyn:=16;
> if (i = 4) and (j = 5) then iloczyn:=20;
> if (i = 4) and (j = 6) then iloczyn:=24;
> if (i = 4) and (j = 7) then iloczyn:=28;
> if (i = 4) and (j = 8) then iloczyn:=32;
> if (i = 4) and (j = 9) then iloczyn:=36;
> if (i = 4) and (j = 10) then iloczyn:=40;
> if (i = 5) and (j = 1) then iloczyn:=5;
> if (i = 5) and (j = 2) then iloczyn:=10;
> if (i = 5) and (j = 3) then iloczyn:=15;
> if (i = 5) and (j = 4) then iloczyn:=20;
> if (i = 5) and (j = 5) then iloczyn:=25;
> if (i = 5) and (j = 6) then iloczyn:=30;
> if (i = 5) and (j = 7) then iloczyn:=35;
> if (i = 5) and (j = 8) then iloczyn:=40;
> if (i = 5) and (j = 9) then iloczyn:=45;
> if (i = 5) and (j = 10) then iloczyn:=50;
> if (i = 6) and (j = 1) then iloczyn:=6;
> if (i = 6) and (j = 2) then iloczyn:=12;
> if (i = 6) and (j = 3) then iloczyn:=18;
> if (i = 6) and (j = 4) then iloczyn:=24;
> if (i = 6) and (j = 5) then iloczyn:=30;
> if (i = 6) and (j = 6) then iloczyn:=36;
> if (i = 6) and (j = 7) then iloczyn:=42;
> if (i = 6) and (j = 8) then iloczyn:=48;
> if (i = 6) and (j = 9) then iloczyn:=54;
> if (i = 6) and (j = 10) then iloczyn:=60;
> if (i = 7) and (j = 1) then iloczyn:=7;
> if (i = 7) and (j = 2) then iloczyn:=14;
> if (i = 7) and (j = 3) then iloczyn:=21;
> if (i = 7) and (j = 4) then iloczyn:=28;
> if (i = 7) and (j = 5) then iloczyn:=35;
> if (i = 7) and (j = 6) then iloczyn:=42;
> if (i = 7) and (j = 7) then iloczyn:=49;
> if (i = 7) and (j = 8) then iloczyn:=56;
> if (i = 7) and (j = 9) then iloczyn:=63;
> if (i = 7) and (j = 10) then iloczyn:=70;
> if (i = 8) and (j = 1) then iloczyn:=8;
> if (i = 8) and (j = 2) then iloczyn:=16;
> if (i = 8) and (j = 3) then iloczyn:=24;
> if (i = 8) and (j = 4) then iloczyn:=32;
> if (i = 8) and (j = 5) then iloczyn:=40;
> if (i = 8) and (j = 6) then iloczyn:=48;
> if (i = 8) and (j = 7) then iloczyn:=56;
> if (i = 8) and (j = 8) then iloczyn:=64;
> if (i = 8) and (j = 9) then iloczyn:=72;
> if (i = 8) and (j = 10) then iloczyn:=80;
> if (i = 9) and (j = 1) then iloczyn:=9;
> if (i = 9) and (j = 2) then iloczyn:=18;
> if (i = 9) and (j = 3) then iloczyn:=27;
> if (i = 9) and (j = 4) then iloczyn:=36;
> if (i = 9) and (j = 5) then iloczyn:=45;
> if (i = 9) and (j = 6) then iloczyn:=54;
> if (i = 9) and (j = 7) then iloczyn:=63;
> if (i = 9) and (j = 8) then iloczyn:=72;
> if (i = 9) and (j = 9) then iloczyn:=81;
> if (i = 9) and (j = 10) then iloczyn:=90;
> if (i = 10) and (j = 1) then iloczyn:=10;
> if (i = 10) and (j = 2) then iloczyn:=20;
> if (i = 10) and (j = 3) then iloczyn:=30;
> if (i = 10) and (j = 4) then iloczyn:=40;
> if (i = 10) and (j = 5) then iloczyn:=50;
> if (i = 10) and (j = 6) then iloczyn:=60;
> if (i = 10) and (j = 7) then iloczyn:=70;
> if (i = 10) and (j = 8) then iloczyn:=80;
> if (i = 10) and (j = 9) then iloczyn:=90;
> if (i = 10) and (j = 10) then iloczyn:=100;
> writeln('Iloczyn tych liczb: ', iloczyn);
> end.
Następne wpisy z tego wątku
- 21.02.17 23:43 Sebastian Biały
- 22.02.17 01:18 slawek
- 22.02.17 02:21 bartekltg
- 22.02.17 09:06 slawek
- 22.02.17 09:11 slawek
- 22.02.17 18:23 niepełnosprawny intelektualnie 'POPIS/EU
- 22.02.17 18:25 niepełnosprawny intelektualnie 'POPIS/EU
Najnowsze wątki z tej grupy
- A Szwajcarzy kombinują tak: FinalSpark grows human neurons from stem cells and connects them to electrode arrays
- Re: Najgorszy język programowania
- NOWY: 2025-09-29 Alg., Strukt. Danych i Tech. Prog. - komentarz.pdf
- Na grupie comp.os.linux.advocacy CrudeSausage twierdzi, że Micro$lop używa SI do szyfrowania formatu dok. XML
- Błąd w Sofcie Powodem Wymiany 3 Duńskich Fregat Typu Iver Huitfeldt
- Grok zaczął nadużywać wulgaryzmów i wprost obrażać niektóre znane osoby
- Can you activate BMW 48V 10Ah Li-Ion battery, connecting to CAN-USB laptop interface ?
- We Wrocławiu ruszyła Odra 5, pierwszy w Polsce komputer kwantowy z nadprzewodzącymi kubitami
- Ada-Europe - AEiC 2025 early registration deadline imminent
- John Carmack twierdzi, że gdyby gry były optymalizowane, to wystarczyły by stare kompy
- Ada-Europe Int.Conf. Reliable Software Technologies, AEiC 2025
- Linuks od wer. 6.15 przestanie wspierać procesory 486 i będzie wymagać min. Pentium
- ,,Polski przemysł jest w stanie agonalnym" - podkreślił dobitnie, wskazując na brak zamówień.
- Rewolucja w debugowaniu!!! SI analizuje zrzuty pamięci systemu M$ Windows!!!
- Brednie w wiki - hasło Dehomag
Najnowsze wątki
- 2025-12-29 Katowice => Key Account Manager <=
- 2025-12-29 MON nabyło Hutę Częstochowa. "Historyczne znaczenie"
- 2025-12-28 Czwarta doba strajku na głębokości 500 metrów. "Ministerstwo robi sobie z nas jaja"
- 2025-12-29 Kolejny kraj [WB - przyp. JMJ] zakazuje chowu klatkowego. W Polsce żyje tak 40 mln kur
- 2025-12-29 MON nabyło Hutę Częstochowa. "Historyczne znaczenie"
- 2025-12-28 Norwegia kontra media społecznościowe
- 2025-12-28 PREZENTY OD MINISTRA FINANSÓW. SKĄD PIENIĄDZE?
- 2025-12-27 pompa CO
- 2025-12-27 Gdynia => Przedstawiciel handlowy / KAM (branża TSL) <=
- 2025-12-27 Ewakuacja ludności
- 2025-12-26 Gdańsk => ERP Microsoft Dynamics 365 Commerce Consultant <=
- 2025-12-26 Kraków => Konsultant Microsoft Dynamics 365 Finance <=
- 2025-12-26 Kraków => Microsoft Dynamics 365 Finance Consultant <=
- 2025-12-26 wymieniłem termostat
- 2025-12-26 Warszawa => Senior Backend Java Developer <=




5 Najlepszych Programów do Księgowości w Chmurze - Ranking i Porównanie [2025]