Released Under the MIT Licence
Fibonacci=[] दुहराओ a को (0,25) { अगर (a<3) { Fibonacci[a]=a } अगर (a>1) { x=Fibonacci[a-2] y=Fibonacci[a-1] Fibonacci[a]=x+y } } प्रिंट(Fibonacci) }
इनपुट(YourSign) line="|" space=" " Extra=" " X IS OUR ITERATOR WHICH WILL RUN A LOOP FROM 1 TO 15 दुहराओ x को (1,15) { Road=space+line+space+space+space +YourSign +space+space+space+line+space space=space+Extra प्रिंट(Road) }
इनपुट(Name) ReverseString='tempValue' प्रिंट ('Input String-'+ Name) length=Name.संख्या() दुहराओ b को Name मे { ReverseString=ReverseString+Name[length-1] length=length-1 } प्रिंट ('Reversed String-'+ ReverseString)
FirstName='Swanand' LastName='Kadam' रचना First(First,Last) { प्रिंट(First) प्रिंट(Last) } First(FirstName,LastName)
इनपुट(Binary) DecimalValue=0 length=Binary.संख्या() दुहराओ x को Binary मे { length=length-1 BinaryCharacter=Binary[x] value=BinaryCharacter*2**length DecimalValue=DecimalValue+value } प्रिंट(DecimalValue)
इनपुट(num) prime=[] दुहराओ b को (2,num) { Remainder=num%b अगर(Remainder==0) { prime.पुश(b) } } length=prime.संख्या() अगर(length==1) { प्रिंट(num + "is a Prime Number") } अन्यथा { प्रिंट(num + "is not a Prime Number") }
इनपुट(FirstValue) इनपुट(SecondValue) प्रिंट('Values Entered Are- '+FirstValue+SecondValue) इनपुट(Operation) प्रिंट('Operation Selected- " + Operation) output=0 अगर(Operation=='+') { output=FirstValue+SecondValue प्रिंट("Output- " + output) } अगर(Operation=='-') { output=FirstValue-SecondValue प्रिंट("Output- " + output) } अगर(Operation=='*') { output=FirstValue*SecondValue प्रिंट("Output- " + output) } अगर(Operation=='/') { output=FirstValue/SecondValue प्रिंट("Output- " + output) }