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 create a multiplication table of a given number using while loop.

Program to find equal values using if statement in C++