jueves, 19 de septiembre de 2019

programa 4 modificado

REALIZAR EL CICLO PARA IMPRIMIR LOS MÚLTIPLOS DEL 8 INICIANDO EN 8 Y TERMINANDO EN 160



#include <iostream>
#include <stdio.h>

using namespace std;
void imprimir();
int h;
int main()
{
    imprimir();
    return 0;


}
    void imprimir()
{
        cout<<"funcion imprimir"<<endl;

    for(h=8; h<=160; h=h+8)
    {

        cout <<h<<endl;
    }

    cout<<"fin funcion imprimir"<<endl;

}








No hay comentarios.:

Publicar un comentario