ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ

 

2739๋ฒˆ: ๊ตฌ๊ตฌ๋‹จ

N์„ ์ž…๋ ฅ๋ฐ›์€ ๋’ค, ๊ตฌ๊ตฌ๋‹จ N๋‹จ์„ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. ์ถœ๋ ฅ ํ˜•์‹์— ๋งž์ถฐ์„œ ์ถœ๋ ฅํ•˜๋ฉด ๋œ๋‹ค.

www.acmicpc.net


โœ๐Ÿป ํ’€์ด

๐ŸŽจ Go

package main

import (
	"fmt"
)

func main() {
	var n int
	fmt.Scanf("%d", &n)
	for i:= 1; i <= 9 ; i ++ {
		fmt.Printf("%d * %d = %d\n", n, i, n*i)
	}
}

๐ŸŽจ Python3

import sys

n = int(sys.stdin.readline())

for i in range(1,10):
    print('%d * %d = %d' %(n, i, n*i))
728x90
๋Œ“๊ธ€