![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/18940122_1612353281918.jpg)
Mohammad Emaz Uddin
Followers: 0 Following: 0
Undergraduate student of Bangladesh University of Engineering and Technology on Department of Electrical and Electronic Engineering.
Estadística
0 Preguntas
1 Respuesta
CLASIFICACIÓN
191.893
of 297.016
REPUTACIÓN
0
CONTRIBUCIONES
0 Preguntas
1 Respuesta
ACEPTACIÓN DE RESPUESTAS
0.00%
VOTOS RECIBIDOS
0
CLASIFICACIÓN
of 20.419
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
of 157.725
CONTRIBUCIONES
0 Problemas
0 Soluciones
PUNTUACIÓN
0
NÚMERO DE INSIGNIAS
0
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Write a MATLAB script file that calculates the sum of first n natural numbers (the program could prompt the user for the number n). The program must use a “for” or “while” loop to accomplish this, and must NOT use the ready formula s = 1 2 n (n + 1).
clc; clear; close all; n= input('Enter numbers: '); sum=0; for i=1:1:n sum=sum+i; end disp (sum);
alrededor de 4 años hace | 0