Programa 9.0
#include <iostream>
#include <stdio.h>
using namespace std;
void imprimir();
int vec[10],h,j,multiplo;
int main()
{
imprimir();
return 0;
}
void imprimir()
{
cout <<"INICIANDO PROCESO DE CALCULO E IMPRESION"<<endl;
for(h=0; h<=9; h++)
{
multiplo=(h+1)*8;
vec[h]=multiplo;
}
for(j=0; j<=9; j++)
{
cout <<vec[j] <<"\n";
}
cout <<"TERMINANDO PROCESO DE CALCULO E IMPRESION" <<endl;
}
#include <stdio.h>
using namespace std;
void imprimir();
int vec[10],h,j,multiplo;
int main()
{
imprimir();
return 0;
}
void imprimir()
{
cout <<"INICIANDO PROCESO DE CALCULO E IMPRESION"<<endl;
for(h=0; h<=9; h++)
{
multiplo=(h+1)*8;
vec[h]=multiplo;
}
for(j=0; j<=9; j++)
{
cout <<vec[j] <<"\n";
}
cout <<"TERMINANDO PROCESO DE CALCULO E IMPRESION" <<endl;
}

No hay comentarios.:
Publicar un comentario