0
help!! program is not functioning right! Solved
EvenOdd = int(input("even or odd\n even is 0 odd is 1")); HighestNum = int(input(" how high")); if EvenOdd == 0: HighestNum = (HighestNum * 2) + 1; Even = list(range(0,HighestNum,2)); print(Even) elif EvenOdd == 1: HighestNum = (HighestNum * 3) + 1; Odd = list(range(0,HighestNum,3));
7 Respostas
+ 2
it is working fine my friend
HighestNum = ( HighestNum+1);
for both conditions
0
really!! for me the code finishes and show no odd numbers.
0
print(odd)
0
the code is working fine but you forgot print(odd)
0
thanks!! I'll try it right now
0
it worked thanks.
0
welcome :)