#include int main () { int i, j; i = 0; while ( i < 3) { j = i+1; while(j > 0) { //Fazer algo printf ("%d %d\n", i, j); j--; } ++i; } return 0; }