Documentos de Académico
Documentos de Profesional
Documentos de Cultura
anmendoza3@estudiantes.areandina.edu.co
LENGUAJE C++
LENGUAJE PYTHON
LENGUAJE MATLAB
EJERCICIO 5
1. C++
#include <iostream>
#include <conio.h>
#include <stdio.h>
#include <math.h>
int main(){
int n;
int sumador = 0;
int f=0;
}
Ángel camilo Mendoza maestre
anmendoza3@estudiantes.areandina.edu.co
2. PYTHON
sumador = 0
n = int(input("digite el valor de N: "))
f = 1
for f in range(1,n):
sumador = sumador + f
3. MATLAB
sumador = 0;
n = int = input("digite el valor de N: ");
f= 1;
for f = f:n
sumador = sumador + f;
end