You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The first check github.com/01-edu/z01.PrintRune#4 ensures that students are allowed to call z01.PrintRune only 4 times in total, meanwhile, --no-lit=[1-9] prevents the use of literal integers like '4', '2', '1' as hardcoded values.
package main
import "github.com/01-edu/z01"
type point struct {
PointName rune // x or y //
Value int // value
}
func setPoint(ptr *point, newvalue int) { // zy changename, 3yz a8yr value of point
ptr.Value = newvalue
//index := 0
//for newvalue > 0 {
// value[index] = newvalue % 10 // ba2y esmet l new value