reset password
Author Message
sirgeeooh
Posts: 5
Posted 18:33 Mar 10, 2017 |

Does anybody know if we can use multiple while statements or just one while statement with a bunch of if statements because I'm using multiple while statements to do each solution (sum, product, power) & the result is just the first while statement that was used.

 

thanks 

kknaur
Posts: 540
Posted 18:47 Mar 10, 2017 |

If the program does not explicitly state that you can only use a certain number of loops, you can use as many as you want.

Arnav98
Posts: 48
Posted 23:50 Mar 10, 2017 |

Are we supposed to include the limits for the first 3 cases since some say you have to and some say u dont as it states between.

kknaur
Posts: 540
Posted 08:35 Mar 11, 2017 |

a and b are inclusive so [a, b]