Subscribe to Feeds

Send Your COMPLETED Projects To georgepj@hotmail.com

We'll Publish It With Your Name :-)

Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]

No Days, Weeks in a Year

Click Here To Download C++ File Of This Program

 //Downloaded From www.c4cpp.co.nr. (C)2009.All rights reserved.  
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int d,y,w,da;
cout<<"Enter the no of Days"<<endl;
cin>>d;
y=d/365;
w=((y%365)/7);
da=((y%365)%7);
cout<<y<<"Yrs "<<w<<"Weeks"<<da<<"Days";
getch();
}

No comments: