Program to print day/month/year in C++

Using Visual Studio 2015


===============================================================


#include<iostream>
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

Popular posts from this blog

Suppose you are given a square matrix of size n x n, write a program to determine if this is an identity matrix. 2D array

Program to calculate the number of days from the beginning of the year to a date specified by the user through array in C++

Bubble sorting of array in C++