0

How to align whole program at center

n=int(input('enter height')) a=0 b=0 c=0 d=0 for a in range(n): if(a==0): print('1'.center(50)) if(a!=0): for b in range (a+1): c=a d=b def com(c,d): if(b==0): f=1 else: f=1 while c>0 and d>0: f=f*(c/d) f=int(f) c=c-1 d=d-1 return f x=com(c,d) x=str(x) print(' '*a*b+x,end='') print('\n')

1st Oct 2019, 4:41 PM
Prakhar Sharma
Prakhar Sharma - avatar
1 ответ
+ 1
Why you want that. It doesn't make sense.
5th Oct 2019, 10:05 PM
A͢J
A͢J - avatar