Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var a, b, passCount int
- fmt.Scanln(&a)
- fmt.Scanln(&b)
- fmt.Scanln(&passCount)
- var charA = 35
- var charB = 64
- for j := 1; j <= a; j++ {
- for x := 1; x <= b; x++ {
- if charA == 56 {
- charA = 35
- }
- if charB == 97 {
- charB = 64
- }
- fmt.Printf("%c%c%d%d%c%c|", charA, charB, j, x, charB, charA)
- passCount--
- charA++
- charB++
- if passCount == 0 {
- return
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement