reset password
Author Message
jpascua
Posts: 197
Posted 00:44 Oct 22, 2012 |

I've read this multiple times but I'm not sure if I understand what it's asking for...

Last edited by jpascua at 10:14 Oct 22, 2012.
kevinTnt
Posts: 28
Posted 22:03 Oct 22, 2012 |

you'll need two 'for loops' . and 'if'

jpascua
Posts: 197
Posted 22:08 Oct 22, 2012 |

What is it asking for though?

kevinTnt
Posts: 28
Posted 22:13 Oct 22, 2012 |

like all the compinations from 1 to 7 .

12 13 14 15 16 17
  23 24 25 26 27
  34 35 36 37
  45 46 47
  56 57
  67

these are all the combinations for 1 to 7.

jpascua
Posts: 197
Posted 22:21 Oct 22, 2012 |

I still don't get it, sorry. I don't understand how those numbers came from 1 - 7.

kevinTnt
Posts: 28
Posted 22:24 Oct 22, 2012 |

like you can't have the same combination as in : 11, 12, 21 22 13, 31, and etc...

Cause if you flip them they'll be the same. So you do that for all the numbers from 1 to 7 .

jpascua
Posts: 197
Posted 22:28 Oct 22, 2012 |

Oh okay, I get it. Thanks.

kevinTnt
Posts: 28
Posted 22:29 Oct 22, 2012 |

no problem.

jpascua
Posts: 197
Posted 21:39 Oct 23, 2012 |

I managed to get it but I didn't use an if statement. o.o

kevinTnt
Posts: 28
Posted 22:31 Oct 23, 2012 |

multiple ways to solve