#code C++ 2021
Welcome to my blog.you can SUBSCRIBE my YouTube channel.
Code is here
#include<iostream>
#include<string>
using namespace std;
int main() {
const int a= 2021;
int b;
const int c= 365;
const int d = 80;
cout <<"Enter your date of birth: ";
cin>>b;
cout<<"your Age is now: "<<((a-b))<<endl;
cout<<"your Available Age is: "<<((a - b)-d);
cout<<"\n your Age in Days: "<<((a-b)*c);
cout<<"\nyour Available Age in days:\n "<<(((a-b)-d)*c);
cout<<"\nYour Age in weeks: "<<(((a - b)*c)/7)<<" weeks";
return 0;
}
Comments
Post a Comment