Git Product home page Git Product logo

-'s Introduction

var a=readLine()
var b=readLine()
var c=readLine()
var t=0
if (b=="+"){a+c}
else if (b=="-"){t=a-c}
else if (b=="*"){t=a*c}
else if (b=="/"){t=a/c}
else if (b=="%"){t=a%c}
println(t)

-'s People

Contributors

rashoumok avatar

Watchers

 avatar

-'s Issues

حلزون با turtle (python)

به جای این مدل کد میشه از حلقه هم استفاده کرد و این غیر استاندارد هست اما ساختم برای اینکه نمونه ای بر کتابخانه ی turtle پایتون باشه

import turtle as tr
tr.color("red")
tr.penup()
tr.forward(-300)
tr.pendown()
tr.forward(600)
tr.right(-90)
tr.color("green")
tr.forward(600)
tr.right(-90)
tr.color("blue")
tr.forward(600)
tr.right(-90)
tr.color("brown")
tr.forward(550)
tr.right(-90)
tr.color("orange")
tr.forward(550)
tr.right(-90)
tr.color("pink")
tr.forward(500)
tr.right(-90)
tr.color("purple")
tr.forward(500)
tr.right(-90)
tr.color("yellow")
tr.forward(450)
tr.right(-90)
tr.color("black")
tr.forward(450)
tr.right(-90)
tr.color("blue")
tr.forward(400)
tr.right(-90)
tr.color("red")
tr.forward(400)
tr.right(-90)
tr.color("pink")
tr.forward(350)
tr.right(-90)
tr.color("orange")
tr.forward(350)
tr.right(-90)
tr.color("purple")
tr.forward(300)
tr.right(-90)
tr.color("green")
tr.forward(250)
tr.right(-90)
tr.color("black")
tr.forward(250)
tr.right(-90)
tr.color("brown")
tr.forward(200)
tr.right(-90)
tr.color("blue")
tr.forward(200)
tr.right(-90)
tr.color("yellow")
tr.forward(150)
tr.right(-90)
tr.color("pink")
tr.forward(150)
tr.right(-90)
tr.color("green")
tr.forward(100)
tr.right(-90)
tr.color("yellow")
tr.forward(100)
tr.right(-90)
tr.color("purple")
tr.forward(50)
tr.right(-90)
tr.color("orange")
tr.forward(50)
tr.right(-90)
tr.color("pink")
tr.forward(25)
tr.right(-90)
tr.color("brown")
tr.forward(25)
tr.right(-90)
tr.color("purple")
tr.forward(12.5)

پسورد ساز با پایتون

#------------------------------------------------
#پروژه پسورد ساز 
#----------------------------------------
import random as rn
inp=input("لطفاً تعداد رقم مورد نظر برای روزتان را وارد کنید ")
ab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890+!?*/\\"
a=""
for z in range(int(inp)):
	c=rn.randint(0,len(ab))
	aa=ab[c]
	a=a+aa
print(a)

#python #code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.