jueves, 19 de septiembre de 2019

programa 3 modificado

REALIZAR EL CICLO PARA IMPRIMIR LOS MÚLTIPLOS DEL 3 INICIANDO EN 3 Y TERMINANDO EN 66


#include <iostream>
using namespace std;
void imprimir();
int h;
int main()

{
    imprimir();
    return 0;

}
   void imprimir()
{

    cout<<"funcion imprimir"<<endl;
    for(h=3;h<=66;h=h+3)

    {

        cout<<h<<endl;

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



}


No hay comentarios.:

Publicar un comentario