백준_단계별로 풀어보기_3단계 반복문

########## 백준 2739 ##########
n = int(input())
for i in range(1,10):
    print(f"{n} * {i} = {n*i}")


########## 백준 10950 ##########
t = int(input())
for _ in range(t):
    a, b = map(int, input().split())
    print(a+b)

# # 고수코드
# import sys 
# input = sys.stdin.readline
# for _ in range(int(input())):
#     a, b = map(int, input().split())
#     print()


########## 백준 8393 ##########
n = int(input())
print(n*(n+1)//2)


######### 백준 25304 ##########
import sys
input = sys.stdin.readline
x = int(input())
for _ in range(int(input())):
    a, b = map(int, input().split())
    x -= a*b
print("Yes" if x == 0 else "No")


########## 백준 25314 ##########
n = round(int(input())/4)
for _ in range(n): print("long", end=" ")
print("int")

# # 고수코드
# print(int(input())//4*'long '+'int')


########## 백준 15552 빠른 A+B ##########
import sys
input = sys.stdin.readline
for _ in range(int(input())):
    c = sum(map(int, input().split()))
    print(c)

# #고수코드1
# import sys
# (lambda:print('\n'.join(map(str,map(int.__add__,*[map(int,sys.stdin.buffer.read().split()[1:])]*2)))))()
# 
# #고수코드2
# import sys
# for _ in range(int(sys.stdin.readline())):
#     c = sys.stdin.readline().split()
#     sys.stdout.write("%d\n" %(int(c[0]) + int(c[1])))


########## 백준 11021 ##########
import sys
for i in range(1, int(sys.stdin.readline())+1):
    c = sys.stdin.readline().split()
    sys.stdout.write("Case #%d: %d\n" %(i, int(c[0]) + int(c[1])))


########## 백준 11022 ##########
import sys
for i in range(1, int(sys.stdin.readline())+1):
    a, b = map(int, sys.stdin.readline().split())
    print("Case #%d: %d + %d = %d" %(i, a, b, a+b))


########## 백준 2438 ##########
import sys
[print("*"*i) for i in range(1, int(sys.stdin.readline())+1)]


########## 백준 2439 ##########
n = int(input())
for i in range(1, n+1):
    print(" "*(n-i) + "*"*i)

#고수코드
# [print(' '*(n-i)+'*'*i)for i in range(1,n+1)]


########## 백준 10951 A+B - 4 ##########
# EOF
import sys
for x in sys.stdin:
    a, b = map(int, x.split())
    print(a+b)
    # sys.stdin은 ^Z를 입력받으면 종료, 개행문자까지 입력 됨
    # 따라서 strip()이나 rstrip()으로 제거해 주어야 함