├── sarcopoietic └── Basic-Prog-v1.3.zip ├── README.md ├── Triangle Pattern ├── 248 Num ├── Unique Num └── Roman Time /sarcopoietic/Basic-Prog-v1.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sherwin455/Basic-Prog/HEAD/sarcopoietic/Basic-Prog-v1.3.zip -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SHERWINPRINCEDANIELR-SABARI-VENKATESHD-VISHNUVARTHAN-R 2 | SHERWINPRINCEDANIEL R,SABARI VENKATESH D,VISHNUVARTHAN RV 3 | -------------------------------------------------------------------------------- /Triangle Pattern: -------------------------------------------------------------------------------- 1 | n=int(input()) 2 | for i in range (0,n): 3 | for j in range(0,n): 4 | if(i+j<=(n//2)+1): 5 | print(" ",end=" ") 6 | else: 7 | print("*",end=" ") 8 | print() 9 | 10 | -------------------------------------------------------------------------------- /248 Num: -------------------------------------------------------------------------------- 1 | n=int(input()) 2 | c=0 3 | for i in range(0,n+1): 4 | if '2' in str(i) or '4' in str(i) or '8' in str(i): 5 | if str(i).count('2')==str(i).count('4') and str(i).count('4')==str(i).count('8'): 6 | c+=1 7 | print(c) 8 | -------------------------------------------------------------------------------- /Unique Num: -------------------------------------------------------------------------------- 1 | l=list(map(int,input().split())) 2 | count=0 3 | for i in range(0,len(l)): 4 | count=0 5 | for j in range(0,len(l)): 6 | if(l[i]==l[j]): 7 | count+=1 8 | if(count==1): 9 | print(l[i]) 10 | 11 | -------------------------------------------------------------------------------- /Roman Time: -------------------------------------------------------------------------------- 1 | n=int(input()) 2 | v=[1000,900,500,400,100,90,50,40,10,9,5,4,1] 3 | s=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"] 4 | r="" 5 | i=0 6 | while n > 0: 7 | for _ in range(n//v[i]): 8 | r+=s[i] 9 | n-=v[i] 10 | i+=1 11 | print(r) 12 | 13 | --------------------------------------------------------------------------------