jueves, 7 de noviembre de 2019

Programa 7 con firma

#include <stdio.h>
#include <windows.h>
#include <iostream>
using namespace std;
void captura();
void operacion();
void imprimir();
void firma();
int j;
float acum, calif, promedio;
int main ()
{
    captura();
    operacion();
    imprimir();
    firma();
    return 1;
}
void captura()
{
for ( j>=1; j<=20; j++)
    {
        cout<< " Ingresa la calificacion\n";
        cin>>calif;
        acum = acum + calif;
    }
}
void operacion()
{
promedio= acum /20;
}
void imprimir()
{
cout<< "\nEl promedio es" << promedio;
}
void firma()
{
    cout<<"\n\n\n"<<endl;
cout<<"     ,;;;, ,;;;,                 ,;;;, ,;;;,       "<<endl;
cout<<"    ;;;' ';' ';;;               ;;;' ';' ';;;         "<<endl;
cout<<"    ;;;       ;;;               ;;;       ;;;        "<<endl;
cout<<"     ';;,   ,;;' AMERICA CITLALY ';;,   ,;;'       "<<endl;
cout<<"       ';;,;;'                     ';;,;;'          "<<endl;
cout<<"         ';'                         ';'        "<<endl;
system("color 75");
}

No hay comentarios:

Publicar un comentario

Cadenas

#include <iostream> #include <stdio.h> #include <string.h> using namespace std; char nombre[50],paterno[50],materno[20...