Fibonacci
husseinovich (1)

I’m made Fibonacci algorithm and everytime it prints the sequence in different lines
Please how can I print all the sequence in the same print line ??
Any ideas?

You are viewing a single comment. View All
Answered by Vandesm14 (921) [earned 5 cycles]
View Answer
joshwood (107)

Another possible solution would be to out how to print without a newline at the end.
I don't know which language you are using, but in python you can do print("text", end=""). This defines the end token to be an empty string, instead of \n - the default value.