:: wikimiki.org ::
| Pascal |
PascalPascal može značiti:
- Pascal (programski jezik)
- Pascal (SI jedinica), mjerna jedinica za tlak
Pascal (programski jezik)Pascal je ime programskog jezika kojeg je stvorio švicarski znanstvenik Niklaus Wirth 1970. godine. Isprva Pascal je se koristilo kao nastavno pomagalo za strukturalnu metodu programiranja računala na fakultetima. Tokom 80-tih i ranih 90-tih godina 20. stoljeća Pascal se proširio van akademskih krugova u industriju, no ubrzo nakon pojave i masivnijom upotrebom objektno orijentiranih jezika kao C++ ili Java tokom sredine 90-tih godina 20. stoljeća., Pascal počinje gubiti primat u školama kao i u industriji. Pokušaj proširivanja Pascala sa objektno orjentiranim konceptima kroz Object Pascal i kasnije kroz programski jezik Delphi uspjele su prilagoditi Pascal novim izazovima, no njegova popularnost sve više opada.
Povijest razvoja
Osnovica Pascala je programski jezik Algol.
Usporedba Pascala i programskog jezika C
Pascal je namjenjen učenju programiranja, a C je za profesionalce.
Zbog toga je Pascal je puno lakši,
sve se svodi na prijevođenje na engleski itd.
Programski primjer
program DobarDan(input, output);
begin
writeln("Dobar dan!");
end;
program kalkulator;
Uses Crt;
Label 1;
Var Sto : String;
p, d, z : Real;
p2,d2,z2,z3 : Integer;
Begin
1:Clrscr;
z := 0;
TextMode (2);
TextColor (green);
GotoXy(31,1);
Write('KALKULAT 1.3');
GotoXy(24,4);
Writeln('1.Zbrajanje');
GotoXy(25,5);
Writeln('2.Oduzimanje');
GotoXy(26,6);
Writeln('3.Mnozenje');
Gotoxy(27,7);
WriteLn('4.Djeljenje');
GotoXy(28,8);
WriteLn('5.Djeljenje s ostatkom');
GotoXy(29,9);
WriteLn('Za izlaz pritisni tipku Q');
Gotoxy(25,11);
WriteLn('Odaberi i pritisni broj...');
WriteLn;
WriteLn;
WriteLn('Napomena:');
WriteLn('Program radi sa najvise tri znamenke iza decimalne tocke!');
WriteLn('Program ce se automatski ugasiti ako pri upisivanju broja upisete slovo!');
WriteLn;
WriteLn('CPYRIGHT (C) Lobel Strmečki');
Sto:= Readkey;
If Sto ='1' then
Begin
ClrScr;
Write('Upisi 1. broj:');
Readln(p);
Write('Upisi 2. broj:');
Readln(d);
z := p + d;
Writeln(p:2:3,'+',d:2:3,'=',z:2:3);
WriteLn;
Write('Pritisni tipku ENTER za povratak...');
Readln;
Goto 1;
End;
If Sto = '2' then
Begin
ClrScr;
Write('Upisi 1. broj:');
Readln(p);
Write('Upisi 2. broj:');
Readln(d);
z := p - d;
WriteLn(p:2:3,' - ',d:2:3,' = ',z:2:3);
WriteLn;
Write('Pritisni tipku ENTER za povratak...');
Readln;
Goto 1;
End;
If Sto='3' then
Begin
ClrScr;
Write('Upisi 1. broj:');
Readln(p);
Write('Upisi 2. broj:');
ReadLn(d);
z := p - d;
WriteLn(p:2:3,' - ',d:2:3,'=',z:2:3);
WriteLn;
Write('Pritisni tipku ENTER za povratak...');
Readln;
Goto 1;
End;
If Sto='4' then
Begin;
ClrScr;
Write('Upisi 1. broj:');
ReadLn(p);
Write('Upisi 2. broj:');
ReadLn(d);
z :=p/d;
WriteLn(p:2:3,'/',d:2:3,'=',z:2:3);
WriteLn;
WriteLn ('Pritisni tipku ENTER za povratak...');
ReadLn;
Goto 1;
End;
If Sto = '5' then
Begin;
ClrScr;
Write ('Upisi 1. broj:');
ReadLn (p2);
Write ('Upisi 2. broj:');
ReadLn (d2);
z2 := p2 div d2;
z3 := p2 mod d2;
Write ( p2,' / ',d2,' = ',z2);
WriteLn (' i ostatak ',z3);
WriteLn;
TextColor(white+2);
WriteLn ('Pritisni tipku ENTER za povratak...');
ReadLn;
Goto 1;
End;
If (Sto = 'q') or (Sto = 'Q') then
Begin
Halt;
End;
If not (Sto='1') then
begin;
Goto 1;
End;
End.
Vanjske poveznice
Category:programski jezici
ja:Pascal
ko:파스칼 프로그래밍 언어
th:ภาษาปาสคาล
Schöngeising
Schöngeising é um município da Alemanha, no distrito de Fürstenfeldbruck, na região administrativa de Oberbayern , estado de Baviera.
Categoria:Municípios do estado de Baviera
pociel spielautomaten Online Casino zujer litera h
|
|
|
| :: RELATED NEWS :: |
Moyer Township, Minnesota
Moyer Township is a township located in Swift County, Minnesota. As of the 2000 census, the township had a total population of 125.
Geography
According to the United States Census Bureau, the township has a total area of 90.1 km² (34.8 mi²). 90.1 km² (34.8 mi²) of it is land and 0.03% is wate
|
Murdock, Minnesota
Murdock is a city located in Swift County, Minnesota. As of the 2000 census, the city had a total population of 303.
Geography
2000
According to the United States Census Bureau, the city has a total area of 1.5 km² (0.6 mi²). 1.5 km&s
|
Pillsbury Township, Minnesota
Pillsbury Township is a township located in Swift County, Minnesota. As of the 2000 census, the township had a total population of 306.
Geography
According to the United States Census Bureau, the township has a total area of 90.3 km² (34.9 mi²). 90.2 km² (34.8 mi²) of it is land and 0.1 km&su
|
Shible Township, Minnesota
Shible Township is a township located in Swift County, Minnesota. As of the 2000 census, the township had a total population of 115.
Geography
According to the United States Census Bureau, the township has a total area of 93.2 km² (36.0 mi²). 90.5 km² (34.9 mi²) of it is land and 2.7 km²
|
Six Mile Grove Township, Minnesota
Six Mile Grove Township is a township located in Swift County, Minnesota. As of the 2000 census, the township had a total population of 171.
Geography
According to the United States Census Bureau, the township has a total area of 93.1 km² (36.0 mi²). 93.0 km² (35.9 mi²) of it is land and 0.1
|
Swenoda Township, Minnesota
Swenoda Township is a township located in Swift County, Minnesota. As of the 2000 census, the township had a total population of 159.
Geography
According to the United States Census Bureau, the township has a total area of 92.7 km² (35.8 mi²). 92.7 km² (35.8 mi²) of it is land and none of it
|
Tara Township, Swift County, Minnesota
Tara Township is a township located in Swift County, Minnesota. As of the 2000 census, the township had a total population of 121.
Geography
According to the United States Census Bureau, the township has a total area of 92.9 km² (35.9 mi²). 92.8 km² (35.8 mi²) of it is land and 0.1 km² (
|
Bartlett Township, Minnesota
Bartlett Township is a township in Todd County, Minnesota, USA. As of the 2000 census, the township had a total population of 348.
Geography
2000]]
According to the United States Census Bureau, the township has a total area of 93.0 km² (35.9 <
|
Bertha, Minnesota
Bertha is a city located in Todd County, Minnesota. As of the 2000 census, the city had a total population of 470.
Geography
2000
According to the United States Census Bureau, the city has a total area of 2.7 km² (1.0 mi²). 2.7 km²
|
Bertha Township, Minnesota
Bertha Township is a township located in Todd County, Minnesota. As of the 2000 census, the township had a total population of 397.
Geography
According to the United States Census Bureau, the township has a total area of 91.8 km² (35.4 mi²). 91.8 km² (35.4 mi²) of it is land and none of it is
|
|