photo

Ranil Fernando


Actif depuis 2018

Followers: 0   Following: 0

Message

Statistiques

  • First Answer
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Réponse apportée
Write a function called digit_counter that takes the name of a text file as input and returns the number of digits (i.e., any of the characters, 0-to-9) that the file contains. If there is a problem opening the file, the function returns -1.
I'm getting a strange error to this problem. Problem 1 (digit_counter): Feedback: Your function performed correctly ...

environ 6 ans il y a | 0

Réponse apportée
Write a function called approximate_e that uses the following formula to compute e, Euler’s number: = 1 ! ∞ = 1+1+ 1 2 + 1 6 + 1 24 +⋯ Instead of going to infinity, the function stops at the smallest k for which the approximation differs from
I'm getting the bellow error for my code when using the grader; Any one hen help me with why, many thanks. But the code works j...

environ 6 ans il y a | 0

Question


I'm getting this error("Operands to the || and && operators must be convertible to logical scalar values") for the below code, can anyone help me with this error ?
function day_diff = day_diff(month1,day1,month2,day2) days_mn = [31 28 31 30 31 30 31 31 30 31 30 31]; if mo...

plus de 6 ans il y a | 1 réponse | 0

1

réponse