Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*PROGRAM PAWNO ? THIS IS A COMMENT, THE COMPILER IS PAWNO*/
- new alph[4], // 0 .. 3 ( since pawn doesn't allow 1..3) and 4 means lower than 4
- Let,
- Inc;
- {
- Inc = 0;
- Let = 'G';
- for(Inc = 1; Inc != 3; Inc++)
- {
- alph[Inc] = Let;
- }
- for(Inc = 1; Inc != 3; Inc++)
- {
- WriteIn(alpha[Inc]); //WriteIn is a custom function that won't compile
- }
- }
- // COMMENT - USING DO-WHILE INSTEAD OF FOR
- {
- Inc = 0;
- Let = 'G';
- do
- {
- alph[Inc] = Let;
- ++Inc;
- }
- while (Inc != 3);
- do
- {
- WriteIn(alpha[Inc]); //WriteIn is a custom function that won't compile
- ++Inc;
- }
- while (Inc != 3);
- }
- // COMMENT - USING WHILE INSTEAD OF FOR
- {
- Inc = 0;
- Let = 'G';
- while (Inc != 3)
- {
- alph[Inc] = Let;
- ++Inc;
- }
- while (Inc != 3)
- {
- WriteIn(alpha[Inc]); //WriteIn is a custom function that won't compile
- ++Inc;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment