jueves, 7 de noviembre de 2019

Programa 6 con firma

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
void capturar();
void operacion();
void imprimir();
void firma();
float n1, n2, n3, suma;
int main ()
{
    capturar();
    operacion();
    imprimir();
    firma();
 return 0;
}
void capturar()
{
    cout<<"  Ingresa un numero"<<endl;
    cin>>n1;
    cout<<"  Ingresa un numero"<<endl;
    cin>>n2;
    cout<<"  Ingresa un numero"<<endl;
    cin>>n3;
}
void operacion()
{
 suma=n1+n2+n3;
}
void imprimir()
{
 cout<<"\n "<<suma;
}
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...