๐Ÿค”<๋ฐฑ์ค€>1000๋ฒˆ A+B

์ง„์„ญยท2021๋…„ 12์›” 31์ผ
0
post-thumbnail
post-custom-banner

๐Ÿ“Œ๋ฌธ์ œ

๋‘ ์ •์ˆ˜ A์™€ B๋ฅผ ์ž…๋ ฅ๋ฐ›์€ ๋‹ค์Œ, A+B๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค.

๐Ÿ“Œ์ž…๋ ฅ

์ฒซ์งธ ์ค„์— A์™€ B๊ฐ€ ์ฃผ์–ด์ง„๋‹ค. (0 < A, B < 10)

๐Ÿ“Œ์ถœ๋ ฅ

์ฒซ์งธ ์ค„์— A+B๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค.

๐Ÿ“Œ๋‚ด ์ฝ”๋“œ

import java.util.Scanner

fun main(args: Array<String>){
    val sc: Scanner = Scanner(System.`in`)
    
    var a = sc.nextInt()
    var b = sc.nextInt()
    println(a+b)
    
}

0๊ฐœ์˜ ๋Œ“๊ธ€