Documentos de Académico
Documentos de Profesional
Documentos de Cultura
TALLER 13 - ARREGLOS
GRUPO B
DAYANNY ALAEXANDRA PINILLA VARGAS
Plantilla:
/*problema
GRUPO B
Dayanny Pinilla y Daniela Salamanca
3 de mayo del 2022
*/
#include<iostream>
using namespace std;
int main()
{
return 0;
}
/*Ejercicio 7
GRUPO B
Dayanny Pinilla y Daniela Salamanca
3 de mayo del 2022
*/
#include<iostream>
using namespace std;
int main()
{
int numero[10];
int i;
float numero_par,numero_impar;
float suma_numero = 0;
for (i = 0; i < 10; i++)
{
do
{
cout << "numero" << i + 1 << ":"; cin >> numero[i];
} while (numero[i] < 0);
}
for (i = 0; i < 10; i++)
{
suma_numero += numero[i];
}
cout << "\n numero final:" << endl;
for (i = 00; i < 10; i++)
{
cout << "\t " << numero[i];
numero_par = numero[i] % 2;
if (numero_par == 0)
{
numero_par = numero[i]*numero[i];
cout << ":" << numero_par<<":"<<endl;
}
else
{
numero_impar=pow(numero[i], 3);
cout << "__" << numero_impar << ":" << endl;
}
}
cout << endl;
cout << endl;
cout << endl;
system("pause");
return 0;
}
/*ejercicio 11
GRUPO B
Dayanny Pinilla y Daniela Salamanca
3 de mayo del 2022
*/
#include<iostream>
using namespace std;
int main()
{
int i, cont_rep = 0, cont_apro = 0, cont_debajo_pro = 0, cont_encima_pro = 0, pro = 0, num_notas =
0;
float notas[10], sumatoria = 0, nota_max = 0, nota_min = 5, nota_prom;
for (i = 0; i < 10; i++)
{
cout << "nota" << i + 1 << ":";
cin >> notas[i];
}