Ver Mensaje Individual
  #10 (permalink)  
Antiguo 21/01/2010, 14:01
Avatar de delarub
delarub
 
Fecha de Ingreso: mayo-2009
Mensajes: 20
Antigüedad: 15 años
Puntos: 2
Respuesta: AYUDENME PORFA CON UN problema de bucles FOR x faaaa URGENTE!!!!!!

Te lo dejo en pseudocodigo para que hagas algo... que preguntas mucho y haces poco:
int n = 3;

Código C:
Ver original
  1. for i = 0, i < n, i += 1
  2.    if i + 1 mod 2 == 0
  3.       for j = n-1, j > 0, j -= 1
  4.          print i+1 * j+1
  5.    else
  6.       for j = 0, j < n, j += 1
  7.          print i+1 * j+1
  8.    print "\n"