Basic C++ program to calculate your age




#include
#include
#include
void main()
{
clrscr();
int a=365,b=60,c=60,d=24;
int age;
long int sec;
cout<<"enter YOUR AGE IN YEARS:";
cin>>age;
sec=age*a*b*c*d;
cout<<"you have wasted"<getch();
}


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: