f=int(input())
l=list(map(int,input().split()))
t=[]
for i in l:
if i>=0:
t.append(i)
t.sort()
p=0
for i in l:
if i>=0:
print(t[p],end=' ')
p+=1
else:
print(i,end=' ')
f=int(input())
l=list(map(int,input().split()))
t=[]
for i in l:
if i>=0:
t.append(i)
t.sort()
p=0
for i in l:
if i>=0:
print(t[p],end=' ')
p+=1
else:
print(i,end=' ')
Hi friends....
In this blog I'm going to give answer for daily test skillrack program, daily challenges and kick start programs and give some coding techniques.
It'll be helpful for u sure and make it usefull
Learn More →
0 Comments