-
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
- Popr. 14. Nauka i Praca Programisty C++ w III Rzeczy (pospolitej)
- Arch. Prog. Nieuprzywilejowanych w pełnej wer. na nowej s. WWW energokod.pl
- 7. Raport Totaliztyczny: Sprawa Qt Group wer. 424
- TCL - problem z escape ostatniego \ w nawiasach {}
- Nauka i Praca Programisty C++ w III Rzeczy (pospolitej)
- testy-wyd-sort - Podsumowanie
- Tworzenie Programów Nieuprzywilejowanych Opartych Na Wtyczkach
- Do czego nadaje się QDockWidget z bibl. Qt?
- Bibl. Qt jest sztucznie ograniczona - jest nieprzydatna do celów komercyjnych
- Co sciaga kretynow
- AEiC 2024 - Ada-Europe conference - Deadlines Approaching
- Jakie są dobre zasady programowania programów opartych na wtyczkach?
- sprawdzanie słów kluczowych dot. zła
- Re: W czym sie teraz pisze programy??
- Re: (PDF) Surgical Pathology of Non-neoplastic Gastrointestinal Diseases by Lizhi Zhang
Najnowsze wątki
- 2025-02-06 PROGRAM DOPŁAT DO AUT ELEKTRYCZNYCH TO ABSURD. ZA ŚRODKI Z KPO KUPIMY NIEMIECKIE I CHIŃSKIE AUTA
- 2025-02-05 ceny OC
- 2025-02-05 Re: ceny OC
- 2025-02-05 Re: ceny OC
- 2025-02-07 Smar do video
- 2025-02-06 Litowe baterie AA Li/FeS2 a alkaliczne
- 2025-02-07 Gliwice => Business Development Manager - Network and Network Security
- 2025-02-07 Warszawa => System Architect (Java background) <=
- 2025-02-07 Warszawa => System Architect (background deweloperski w Java) <=
- 2025-02-07 Warszawa => Solution Architect (Java background) <=
- 2025-02-07 Gliwice => Ekspert IT (obszar systemów sieciowych) <=
- 2025-02-07 Lublin => Programista Delphi <=
- 2025-02-07 Warszawa => Architekt rozwiązań (doświadczenie w obszarze Java, AWS
- 2025-02-07 Dęblin => Node.js / Fullstack Developer <=
- 2025-02-07 Bieruń => Spedytor Międzynarodowy (handel ładunkami/prowadzenie flo