Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AQUA Complete :V #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

carlosvpmessi
Copy link

@carlosvpmessi carlosvpmessi commented Nov 24, 2017

#include <stdlib.h>
#include <stdio.h>
#include
#include <conio.h>
using namespace std;

int main()
{
system("color 75");
int a,A,b,B,c,tiempo,botellas,fd1,fd2,fm1,fm2,fm3;
int botellas4,c2,fd3,fd4,botellas2,botellas3;
int botellas5,botellas6;

cout<<"cuanto tiempo tardas en bañarte?"<<endl;
cin>>tiempo;
botellas= tiempo * 12;
cout<<"tu gastas: "<<botellas<<" botellas al bañarte "<<endl;
cout<<"ingresa el numero del dia de hoy"<<endl;
cin>>a;
cout<<"ingresa el numero del mes actual (1 - 12)"<<endl;
cin>>b;
cout<<"ingresa los dos ultimos digitos del año actual"<<endl;
cin>>c;

cout<<"ingresa el numero del dia de tu cumpleaños"<<endl;
cin>>A;
cout<<"ingresa el numero del mes de tu cumpleaños (1 - 12)"<<endl;
cin>>B;
	
cout<<endl<<"la fecha actual es:"<<a<<"/"<<b<<"/"<<c<<endl;
c2 = c + 1;
if(B<b)
{
	
	cout<<endl<<"tu cumpleaños es el:"<<A<<"/"<<B<<"/"<<c2<<endl;
	
}
else{
	cout<<endl<<"tu cumpleaños es el:"<<A<<"/"<<B<<"/"<<c<<endl;
}
 
//////////////////////////////////////////////////////////////////
 if(A<a)
 {
 	fd1 = A + 30 - a;
 	
	 cout<<"faltan:"<<fd1<<"dias"<<endl;
 	
	  }
else 
{
	fd2 = A - a;
	
	
	cout<<"faltan:"<<fd2<<"dias"<<endl;
	
	 }	
/////////////////////////////////////////////////////////////////
 if(B<b)
 {
 	
	 fm1 =  B + 12 - b;
	 if(A<a)
	 {
	 	fm3= fm1 - 1;
	 	cout<<"faltan:"<<fm3<<"meses"<<endl;
	 }
	 else
	 {
	 	cout<<"faltan:"<<fm1<<"meses"<<endl;
	 }
	 
 	
 	
 	
	  }
else 
{
	fm2 = B - b;
	cout<<"faltan:"<<fm2<<"meses"<<endl;
	 }	  
	 
botellas2= (botellas * fd1); 
botellas4= (botellas * fm1 * 31);
botellas3= (botellas * fd2);
botellas5= (botellas * fm2 * 31);
botellas6= botellas2 + botellas3 + botellas4 + botellas5;
cout<<endl<<" ****// Se estima que Gastaras:"<<botellas6<<" Botellas para tu cumpleaños suponendo que Gastas: "<<botellas<<" Al Dia ****//"<<endl;
 system("pause");

}

profe aqui el programa de el agua
@carlosvpmessi carlosvpmessi changed the title AQUA 2017 :V AQUA Complete :V Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant