Advertisement
ChaeYuriya

Soal W14 - 1

Dec 20th, 2023 (edited)
833
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.18 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6.     var num int
  7.     fmt.Scan(&num)
  8.     for i := 1; i <= num; i++ {
  9.         for j := 1; j <= num; j++ {
  10.             fmt.Print(j)
  11.         }
  12.         fmt.Print("\n")
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement