Guest User

Untitled

a guest
May 14th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.64 KB | None | 0 0
  1. /*PROGRAM PAWNO ? THIS IS A COMMENT, THE COMPILER IS PAWNO*/
  2. new alph[3],
  3.     Let,
  4.     Inc;
  5.  
  6. {
  7.     Inc = 0;
  8.     Let = 'G';
  9.    
  10.     for(Inc = 1; Inc < 3; Inc++)
  11.     {
  12.         alph[Inc] = Let;
  13.     }
  14.     for(Inc = 1; Inc < 3; Inc++)
  15.     {
  16.         WriteIn(alpha[Inc]);
  17.     }
  18. }
  19.  
  20. // COMMENT - USING DO-WHILE INSTEAD OF FOR
  21.  
  22. {
  23.     Inc = 0;
  24.     Let = 'G';
  25.    
  26.     do
  27.     {
  28.         alph[Inc] = Let;
  29.         ++Inc;
  30.     }
  31.     while (Inc != 3);
  32.     do
  33.     {
  34.         WriteIn(alpha[Inc]);
  35.         ++Inc;
  36.     }
  37.     while (Inc != 3);
  38. }
  39.  
  40. // COMMENT - USING WHILE INSTEAD OF FOR
  41.  
  42. {
  43.     Inc = 0;
  44.     Let = 'G';
  45.  
  46.     while (Inc != 3)
  47.     {
  48.         alph[Inc] = Let;
  49.         ++Inc;
  50.     }
  51.     while (Inc != 3)
  52.     {
  53.         WriteIn(alpha[Inc]);
  54.         ++Inc;
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment