Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct data
- {
- int zi, l, an;
- }d;
- int main()
- {
- int i,n,j, v[13]={1,2,1,0,1,0,1,1,0,1,0,1};
- cout<<" zi ";
- cin>>d.zi>>d.l>>d.an;
- if(v[d.l-1]==1)
- cout<<"31 "<<d.l<<" "<<d.an;
- else
- if(v[d.l-1]==0)
- cout<<"30 "<<d.l<<" "<<d.an;
- else
- cout<<"28 "<<d.l<<" "<<d.an;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement