+ 1
Hi, How can I print range of number (like [-x,x]) in C? Can some body help me?
For example x=2 print : -2 , -1 , 0 , 1 ,2 Or x = 1 print : -1 , 0 ,1
4 ответов
+ 1
You can use a for loop from -x to x
+ 1
Well if you start counting from -2 and increment by one, you'll count -2, -1, 0, 1, 2
+ 1
what exactly do u want to do ?? i didnt get it
0
Should I start counting from negative to positive? Or Separate negative and positive numbers? How can I count from negative to positive?