Code: Select all
function countDigit(n As Ulongint) As Integer
return INT(log(10(n)) + 1)
end function
Dim As Integer n
input "Enter number: ";n
print countDigit(n)
Sleep
But compiler says expected '' ( " in return statement. No matter how i try to balance the brackets, it still complains.