Questions tagged as 'for'

2
answers

fill an Array with data up to a specific value

I need to make a program that reads the keyboard names until the user types the word "end", and then prints the names typed in the order they were typed. So far, I have tried to resolve this issue using ArrayList , like this: public c...
asked by 09.10.2015 / 20:35
2
answers

How to calculate numbers in a given range?

How could I compute the sum of the numbers in a range from 1 to 500 in which the summed numbers of this range must be odd and multiple of three ? > I've only been able to do the break so far: for c in range(3, 500, 3): if c % 2 != 0:...
asked by 23.10.2017 / 21:51