Ejercicio Clase Jul 30(Matrices)
3
#include <iostream> #include <iomanip> #include <conio.h> #include <string.h> using namespace System; using namespace std; //Declaracion de arreglos char SEDES[5][20],MONTHS[12][11]; float CASH[5][12],TOTALINGSEDE[5]; void main () { //Ingreso datos SEDES int ind=0; //Valor inicial cin.ignore (); while (ind<=4) //Limite superior { cout<< "\n Por favor ingrese el nombre de la sede No "<<ind+1<<" "; cin.getline (SEDES [ind], 20 ); ind++; } for (int j=0; j<=4; j++) { cout<<"\n"<<SEDES[j]; } getch (); //Ingreso datos MONTHS int ind2=0; cin.ignore (); while (ind2<=11) { cout<< "\n Por favor ingrese el nombre del mes No "<<ind2+1<<" "; cin.getline (MONTHS [ind2], 11 ); ind2++; } for (int j=0; j<=11; j++) { cout<<"\n"<<MONTHS[j]; } getch (); //Ingresar datos CASH for (int s=0; s<=4; s++) { for (int m=0; m<=11; m++) {
-
Upload
mayraalejandragomez -
Category
Documents
-
view
216 -
download
4
description
matrices
Transcript of Ejercicio Clase Jul 30(Matrices)
#include
#include
#include
#include
using namespace System;
using namespace std;
//Declaracion de arreglos
char SEDES[5][20],MONTHS[12][11];
float CASH[5][12],TOTALINGSEDE[5];
void main ()
{
//Ingreso datos SEDES
int ind=0; //Valor inicial
cin.ignore ();
while (ind