0

HELP ME PLS IM A NOOB :(

hi so i wanted to make a program like if input=5, output will be = 1,-2,3,-4,5 but the code i wrote didnt let the program stop https://code.sololearn.com/cQ52H092pn9m/?ref=app please masters kindly help me correct my code :") thanks

6th Dec 2018, 8:02 AM
Annida Miftakhul Farodisa
Annida Miftakhul Farodisa - avatar
4 Answers
+ 3
Hi Annida M.F , I'm sure someone will help🙂 Meanwhile, what about redacting your post title so that it is meaningful and relate to the question? It will attract more viewers and make it easy for others to search!
6th Dec 2018, 8:57 AM
ifl
ifl - avatar
+ 2
Please dont use goto above all in loops... Futhermore your problem is solvable with a simple for loop HINT: If you see, the pattern indicate to negate every even number then....
6th Dec 2018, 9:04 AM
KrOW
KrOW - avatar
+ 1
SOLVED!! THANKS A LOT
6th Dec 2018, 9:09 AM
Annida Miftakhul Farodisa
Annida Miftakhul Farodisa - avatar
+ 1
👍👍👍👍
6th Dec 2018, 9:10 AM
KrOW
KrOW - avatar