Comparison of programming languages (basic instructions): Difference between revisions

Content deleted Content added
Bh3u4m (talk | contribs)
added some Pascal code (except the final table)
Line 32:
| Pascal
| var x: integer;
| var x: word;
|
| var x: real;
| var x: string;
Line 84:
| Pascal
| if ''condition'' then begin \n ''instructions'' \n end;
| if ''condition'' then begin \n ''instructions'' \n end\n else begin \n ''instructions'' \n end;
|
| repeat \n ''instructions'' \n until ''condition'';
| for i := 1 to N do \n begin \n ''instructions'' \n end;
| case ''variable'' of \n ''meaning'': ''instructions''; \n default: ''instructions'' \n end;
|
|-
| Visual Basic
Line 164:
|-
| Pascal
| impossible
|
| impossible
|
| impossible
|
| impossible
|
|-
| Visual Basic
Line 207:
|-
| Pascal
| read( ... ); (or readln( ... );)
| write( ... ); (or writeln( ... );)
| var IOResult;
| ?
|-
| Visual Basic