Program to print day/month/year in C++
Using Visual Studio 2015
===============================================================
using namespace std;
#include<conio.h>
void main()
{
int day,month,year;
cout<<"Day=";
cin>>day;
cout<<"Month=";
cin>>month;
cout<<"Year=";
cin>>year;
cout<<day<<"/"<<month<<"/"<<year;
_getche();
}
=========================================================================
Comments
Post a Comment