C <-> Pascal | Növelés utasitás
C
++
Leírás
++ var ;
Bemenet
- var - Érték felvevő
Példaprogramok
C
Növelés utasitás lehetséges használata:i=0;
while (i<10) ++i;
x =0;
while (i<20)
{
i= i+2;
if (i==16)
{
continue;
}
x++;
}
.
Pascal
inc
Leírás
inc (Érték felvevő) ;
Bemenet
- var - Érték felvevő
Példaprogramok
Pascal
Növelés utasitás lehetséges használata:i:=0;
while i<10 do inc(i);
x :=0;
while i<20 do
begin
i:= i+2;
if i=16 then
begin
continue
end;
inc(x);
end;
C
++
Leírás
var ++ ;
Bemenet
- var - Érték felvevő
Példaprogramok
C
Növelés utasitás lehetséges használata:i=0;
while (i<10) ++i;
x =0;
while (i<20)
{
i= i+2;
if (i==16)
{
continue;
}
x++;
}
.
Pascal
inc
Leírás
inc (Érték felvevő) ;
Bemenet
- var - Érték felvevő
Példaprogramok
Pascal
Növelés utasitás lehetséges használata:i:=0;
while i<10 do inc(i);
x :=0;
while i<20 do
begin
i:= i+2;
if i=16 then
begin
continue
end;
inc(x);
end;
Növelés utasitás más programozási nyelven:
Különbségek: