Zodiaco

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Zodiaco as PDF for free.

More details

  • Words: 162
  • Pages: 4
// Este programa determina el signo zodiacal #include #include #include <string.h>

using namespace std;

int main(int argc, char *argv[]) { int dia_nac=0, numMes=0; char mes[12]=" "; char signo[15]=" "; cout<<"introduce tu dia de nacimiento en numeros del 1 al 31"<<endl; cin>>dia_nac; cout<<"introduce tu mes de nacimiento en letras"<<endl; cin>>mes; if ((((strcmp(mes,"marzo")==0)&&((dia_nac>=21)&&(dia_nac<=31))))|| (((strcmp(mes,"abril")==0)&&((dia_nac>=1)&&(dia_nac<=19)))))

cout<<" su signo es Aries"<<endl; else if ((((strcmp(mes,"abril")==0)&&((dia_nac>=20)&&(dia_nac<=30))))|| (((strcmp(mes,"mayo")==0)&&((dia_nac>=1)&&(dia_nac<=20))))) cout<<" su signo es Tauro"<<endl; else if ((((strcmp(mes,"mayo")==0)&&((dia_nac>=21)&&(dia_nac<=31))))|| (((strcmp(mes,"junio")==0)&&((dia_nac>=1)&&(dia_nac<=20))))) cout<<" su signo es Geminis"<<endl; else if ((((strcmp(mes,"junio")==0)&&((dia_nac>=21)&&(dia_nac<=30))))|| (((strcmp(mes,"julio")==0)&&((dia_nac>=1)&&(dia_nac<=23))))) cout<<" su signo es Cancer"<<endl; else if ((((strcmp(mes,"julio")==0)&&((dia_nac>=24)&&(dia_nac<=31))))|| (((strcmp(mes,"agosto")==0)&&((dia_nac>=1)&&(dia_nac<=22))))) cout<<" su signo es Leo"<<endl; else

if ((((strcmp(mes,"agosto")==0)&&((dia_nac>=23)&&(dia_nac<=31))))|| (((strcmp(mes,"septiembre")==0)&&((dia_nac>=1)&&(dia_nac<=22))))) cout<<" su signo es Virgo"<<endl; else if ((((strcmp(mes,"septiembre")==0)&&((dia_nac>=23)&&(dia_nac<=30))))|| (((strcmp(mes,"octubre")==0)&&((dia_nac>=1)&&(dia_nac<=22))))) cout<<" su signo es Libra"<<endl; else if ((((strcmp(mes,"octubre")==0)&&((dia_nac>=23)&&(dia_nac<=31))))|| (((strcmp(mes,"noviembre")==0)&&((dia_nac>=1)&&(dia_nac<=21))))) cout<<" su signo es Escorpion"<<endl; else if ((((strcmp(mes,"noviembre")==0)&&((dia_nac>=22)&&(dia_nac<=30))))|| (((strcmp(mes,"diciembre")==0)&&((dia_nac>=1)&&(dia_nac<=21))))) cout<<" su signo es Sagitario"<<endl; else if ((((strcmp(mes,"diciembre")==0)&&((dia_nac>=22)&&(dia_nac<=31))))|| (((strcmp(mes,"enero")==0)&&((dia_nac>=1)&&(dia_nac<=19))))) cout<<" su signo es Capricornio"<<endl;

else if ((((strcmp(mes,"enero")==0)&&((dia_nac>=20)&&(dia_nac<=31))))|| (((strcmp(mes,"febrero")==0)&&((dia_nac>=1)&&(dia_nac<=18))))) cout<<" su signo es Acuario"<<endl; else if ((((strcmp(mes,"febrero")==0)&&((dia_nac>=19)&&(dia_nac<=29))))|| (((strcmp(mes,"marzo")==0)&&((dia_nac>=1)&&(dia_nac<=20))))) cout<<" su signo es Piscis"<<endl;

system("PAUSE"); return EXIT_SUCCESS; }

Related Documents

Zodiaco
November 2019 11
Zodiaco
November 2019 7
Zodiaco
November 2019 15
O Zodiaco
May 2020 11
El Zodiaco
May 2020 6
Caballeros Del Zodiaco Quiz
November 2019 15