You are viewing a single comment's thread. Return to all comments →
GoLang
func pageCount(n int32, p int32) int32 { var num int32 if n == 2 { num = 0 } else { if (n - p == 1) { if n%2 == 0 { num = 1 } else { num = 0 } } else { start_page := p / 2 end_page := (n - p) / 2 if start_page < end_page { num = start_page } else { num = end_page } } } return num }
Seems like cookies are disabled on this browser, please enable them to open this website
Drawing Book
You are viewing a single comment's thread. Return to all comments →
GoLang