Created
March 10, 2020 17:11
-
-
Save akshaybharambe14/b18b31b66f90c7523daf091b3fb4d501 to your computer and use it in GitHub Desktop.
Revisions
-
akshaybharambe14 created this gist
Mar 10, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ package main import ( "fmt" ) func main() { fmt.Println(CountDigits(1234454666)) } func CountDigits(i int64) (count int64) { for i > 0 { i = i / 10 count++ } return }