Commit 089d90f8 by BellCodeEditor

auto save

parent 417f738b
Showing with 29 additions and 0 deletions
a = 0
s = 0
while a <= 100:
s = s + a
a = a + 1
print(s)
\ No newline at end of file
M = int(input())
N = int(input())
s = 0
while M <= N:
s = s + M
M = M + 1
print(s)
m = int(input())
a = 1
while a < m+ 1:
print("*"*m)
a = a + 1
\ No newline at end of file
n = int(input())
a=n%10
b=n%100//10
c=n//100
s=a+b+c
print(s)
\ No newline at end of file
......@@ -10,3 +10,4 @@ for i in a:
with open("c:\\Users\\Administrator\\Documents\\lesson13-1\\sales_list.txt",'a',encoding='utf-8') as file:
file.writelines(final_sum)
t
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment