8 Nov 2009

Convert Day


Welcome back friend!!! Today, I will write a C++ language program for convert day. How to make that program??? Please read more to view source code "convert day program"!!!

/* Convert Day */


#include <iostream.h>

#include <conio.h>


void main()

{

int xday, year, month, day;


cout<<"CONVERT DAY"<<endl;

cout<<"Input Day =
";

cin>>xday;

year=xday/365;

month=(xday-(year*365))/30;

day=xday-(year*365)-(month*30);

cout<<"Convert day =
"<<year<<" year; "<<month<<"
month; "<<day<<"
day.";


getch();

}

Get back to this site Friend!!!



Good luck

0 comments:

Post a Comment

 

C++ Language Learning Design by Insight © 2009