[Swift] 8393 - 합
//
// 8393-Sum.swift
// Algorithm
//
// Created by Yujean Cho on 2022/02/17.
//
import Foundation
let num = Int(readLine()!)!
var sum = 0
for i in 0...num {
sum += i
}
print(sum)
//
// 8393-Sum.swift
// Algorithm
//
// Created by Yujean Cho on 2022/02/17.
//
import Foundation
let num = Int(readLine()!)!
var sum = 0
for i in 0...num {
sum += i
}
print(sum)