please include all inputs and outputs

Also provide a comment for each step for exampe;

clc, clear all % clear work space and all variables

sum=0; % initial value for tally

for n=1:999

a=round(n/3); % Test to see if n is evenly divided by 3

a= 3*a; % If it is , then add n to the running total

if (a==n)

sum=sum+n;

else % if not then test to see if n is evenly divided by 5

a=round(n/5);

a=5*a;

if(a==n)

sum=sum+n;

end

end

end

sum % output final result

Subject | Mathematics |

Due By (Pacific Time) | 03/20/2014 12:00 pm |

Tutor | Rating |
---|---|

pallavi Chat Now! |
out of 1971 reviews More.. |

amosmm Chat Now! |
out of 766 reviews More.. |

PhyzKyd Chat Now! |
out of 1164 reviews More.. |

rajdeep77 Chat Now! |
out of 721 reviews More.. |

sctys Chat Now! |
out of 1600 reviews More.. |

sharadgreen Chat Now! |
out of 770 reviews More.. |

topnotcher Chat Now! |
out of 766 reviews More.. |

XXXIAO Chat Now! |
out of 680 reviews More.. |