• Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7




Saturday, June 2, 2012

TURBO PACAL - TUTORIAL GOTO

Hello my friends… welcome to my page in “We Are Knowledge”… you was entry in my site, and you will getting many IT kowledge in here…

I was provided you IT knowledge about dekstop programming and web programming… likely in this page, I want giving you IT knowledge about dekstop programming, that is program language “PASCAL”.

Iwant giving you tutorial using statement “IF in pascal”.., and with example program using it. Ok let’s do read my article… have fun yeah !!!


Copy this program then paste in your software, likely “turbo pascal” :


Example 1 :

uses crt;
label
start,a,b,c,d,e,finish;
begin
clrscr;
goto start;
a:
writeln ('WE ARE KNOWLEDGE');
goto b;
c:
writeln ('MANY IT KNOWLEDGES');
goto d;
e:
writeln ('THANKS FOR VISITORS AND READERS');
goto finish;
d:
writeln ('LET US READING MY OTHER ARTICLE');
goto e;
b:
writeln ('GIVING YOU');
goto c;
start:
goto a;
finish:
readln;
end.


And To Result

WE ARE KNOWLEDGE
GIVING YOU
MANY IT KNOWLEDGES
LET US READING MY OTHER ARTICLE
THANKS FOR VISITORS AND READERS


Note :::

Press “alt  + F9”    >> compiling the program
Press “ctrl + F9”    >> running the program
If you using copy and paste, please change all quotes (“ “) or (‘ ’) to avoid mistakes



Logic the program ::

Uses crt
>> with the statement, we can use the statement “clrscr”

Label
>> place for moving a “goto”

Begin
>> statement for starting in making program

Clrscr
>> (clean screen) this statement for cleaning athe output which had previously been used

Goto
>> statement for doing command move from one statement to other statement

Writeln
>> statement for print in output window

Readln
>> This statement for input in output window. But in program I put in bottom before end, in order to the output we can see

End
>> statement for endding program.



Ok just it about if in PASCAL…
I hope you understand with my article…
See you later

No comments:

Post a Comment