Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

Ndryshoret,konstantet dhe

operatoret
Ndryshoret

Ndryshoret jan hapesira mbajtese ku mund t


memorizojme (ruajm) t dhna. Ndryshoret mund
t ndryshojn vleren gjat programit.
N Pascal ndryshoret themelore jan:
Integer numr I plot
Real-numr me presje dhjetore
Char- simbol
Boolean- shprehje logjike
String-tekst
Konstantet

Konstantet jane te cekura me identifikues dhe


mund ti caktohet nj vler n fillim t programit.
Vlera e ruajtur n nj konstant nuk mund t
ndryshohet.
Konstantet percaktohen ne sektorin e konstanteve ne
program.
Operatoret

Operatori sht simbol qe i tregon compiler-it t


performoj manipulime specifike matematikore apo
logjike.
N Pascal jan kto lloje operatorsh:
Operatoret aritmetik (+,-,*,/,%)
Operatoret relativ (=,<, >, >=,<=)
Operatoret boolean (and ,and then,or,or else,not )
Operatoret Bit (~ ,& ,|)
Operatoret Set , dhe
Operatoret String
Punoi:
Arben Ajredini

You might also like