필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

sum of all multiples of 3 or 5 upto n

조회 수: 1 (최근 30일)
Hemangi
Hemangi 2016년 5월 29일
댓글: Gautam Mohan 2016년 6월 3일
List all the natural numbers up to 10 that are multiples of 3 or 5, we get 3, 5, 6, 9 and 10. The sum of these multiples is 33. Write a function that returns the sum of all the multiples of 3 or 5 up to n where n is a positive integer and the only input argument of the function.
  댓글 수: 2
John D'Errico
John D'Errico 2016년 5월 29일
And what have you tried? This is your homework. Answers is not here to do your homework. If you have an actual question about MATLAB, then ask it. But you need to make some effort, as that is how you will learn.
Gautam Mohan
Gautam Mohan 2016년 6월 3일
To expand on John's answer, I would recommend reading this post that provides some details on how to properly ask for help on the MATLAB Answers site. We strive to keep the questions answered on this site specific and MATLAB-related.
Hope this helps!

답변 (0개)

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by