Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int N,y,m1,m,d;
- cin>>N;
- y = N / 365;
- m1 = N % 365;
- m = m1 / 30;
- d = m1 % 30;
- cout<<y<<" ano(s)"<<endl;
- cout<<m<<" mes(es)"<<endl;
- cout<<d<<" dia(s)"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement