Documentos de Académico
Documentos de Profesional
Documentos de Cultura
TALLER 12 - ARREGLOS
GRUPO B
DAYANNY ALAEXANDRA PINILLA VARGAS
/*Ejercicio 3
26 de abril de 2022
Grupo B
*/
#include <iostream>
using namespace std;
int main()
{
int i, j, fila;
cout << "valor fila:"; cin >> fila;
for (i = 1; i <= fila; i++)
{
cout << endl;
for (j = 1; j <= i; j++)
{
cout << " &" ;
}
cout << endl;
}
system("pause");
return 0;
}
/*Ejercicio 7
26 de abril de 2022
Grupo B
*/
#include <iostream>
using namespace std;
int main()
{
int i, p, total_ventas, total_comision;
float ventas, comision;
cout << "\n para acabar el programa -1\n\n";
cout << "cantidad de ventas del primer vendedor"; cin >> p;
while (p != -1)
{
}
total_ventas + = ventas;
total_comision + = comision;
}
}
cout << "\t REPORTE DE VENDEDORES\n";
cout << "\t\t Ventas mensuales" << p << endl;
cout << "\t\t Total de ventas" << t_ventas << endl;
cout << "\t\t Total de comision" << t_comision << endl;
total_ventas = 0;
total_comision = 0;
cout << "ventas del segundo vendedor"; cin >> p;
}
cout << "- Fin del programa - " << endl;
system("pause");
return 0;
}