Created
June 7, 2012 01:46
-
-
Save de1o/2886039 to your computer and use it in GitHub Desktop.
output.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initNum = int(raw_input("input the initial number:")) | |
delta = int(raw_input("input the delta:")) | |
cnt = int(raw_input("input the count number:")) | |
s = '0ps 0mv ' | |
for i in range(cnt): | |
s += (str(initNum + delta*i) + 'ps 0mv ') | |
s += (str(initNum + delta*i + 1) + 'ps 1.035mv ') | |
s += (str(initNum + delta*i + 2) + 'ps 1.035mv ') | |
s += (str(initNum + delta*i + 3) + 'ps 0mv ') | |
print s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment