Complile and run after writing this code in your compiler

# include <iostream>

using namespace std;
int main()

{
int date;
int month;
int year;
int p_year;
int your_age;

cout<<"\n enter your date:";
cin>>date;

cout<<"\n enter your month:";
cin>>month;

cout<<"\n enter your year:";
cin>>year;

cout<<"\n enter your p_year:";
cin>>p_year;


cout<<" your_age:"<<p_year-year;

cin.get();
cin.ignore();
return 0;

}
Give your Reactions

Post a Comment

 
Top