+ 1

You have to print the series 5,4,3,2,1,0,1,2,3,4,5

10th Nov 2017, 4:06 PM
Sangee Singh
Sangee Singh - avatar
3 Antworten
+ 7
for(int i=-5;i<=5;i++) { cout<<abs(i)<<' '; }
10th Nov 2017, 4:23 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 1
print(*[str(i)[-1] for i in range(-5,6)],sep=",")
10th Nov 2017, 6:48 PM
sayan chandra
sayan chandra - avatar