photo

Mohammed Safwat


Actif depuis 2017

Followers: 0   Following: 0

Statistiques

Feeds

Afficher par

Question


Can someone help me. Appreantly, my code has a minor mistake..plz help
function main() clear clc %Part A% total = 0; for n = 1:99 total = total + n*(n+1); end fprintf('T...

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

1

réponse

Question


Can someone help with a nested for loop question...
This is the problem: Using nested loops, produce a 3 by 3 (square) matrix A. The matrix should look like this: 0 1 ...

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

1

réponse

Réponse apportée
New to matlab, need help with problem..
Total = 0; not understanding why its working for z = 1:300 Total = Total + z if mod(z,50)==0 di...

plus de 6 ans il y a | 0

Question


New to matlab, need help with problem..
I am suppose to create a loop to calculate the sum 1+2+3+...+300. Display the total after each 50 (i.e. 50, 100, 150 …) I know ...

plus de 6 ans il y a | 2 réponses | 0

2

réponses

Question


Help me with this question please....
Write a loop to calculate the sum 1*2+2*3+3*4+ ... + 99*100. The answer is 333300 so far I have total = 0; for n = ...

plus de 6 ans il y a | 2 réponses | 0

2

réponses

Question


I'm currently stuck on this problem, can someone help me please
1. Create a script called Problem01.m that does the following: Make the following variables A. Write a loop to calculate the s...

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

0

réponse