Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (void) /* Pôr sempre o void, faz parte do padrão. */
  4. {
  5.    int k = 0; /* Inicializar sempre as variáveis. */
  6.    /* Deixar espaço em branco entre a declaração das variáveis e o resto do code. */
  7.    while (k < 10) /* Deixar espaço entre a palavra while e o ( -> aplica-se o mesmo a if's, for's... */
  8.      k++; /* Só tem uma instrução logo poupa-se linhas e nao se mete as {}
  9.    /* Deixar espaço entre um return e instrução anterior */
  10.    return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement