Commit 55ea4a1b authored by ferhat tamer's avatar ferhat tamer 💬
Browse files

random sayi üretip dizi içine atan ve ekrana basan program

parent a695f5f3
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
const oyuncusayisi,satirsayisi,sutunsayisi = 2,3,5
s1 := rand.NewSource(time.Now().UnixNano())
r1 := rand.New(s1)
var tombala [2][3][5] int
for x:=0;x<oyuncusayisi;x++ {
fmt.Println(x+1,"numarali oyuncu")
for y:=0;y<satirsayisi;y++ {
for z:=0;z<sutunsayisi;z++ {
tombala[x][y][z]=(r1.Intn(100))
//fmt.Print("satır degeri :",y)
//fmt.Print("sutun degeri :",z)
fmt.Print(" |",tombala[x][y][z]," |")
}
fmt.Println("\n")
}
fmt.Println("\n")
}
}
\ No newline at end of file
  • Here the programming help is available for the public to explore and that would be trusted. There should be the people who really need the updates about programs. I hope after the help on https://opportunitydesk.org/2022/04/18/how-to-help-a-high-school-student-choose-a-career/ blog the people would able to fix the problems with their coding.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment