Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int x;
- int main()
- {
- cout << "Podaj rok: " << endl;
- cin >> x;
- if(((x%4==0)&&(x%100!=0))||(x%400==0)) cout << "Ten rok jest przestepny" << endl;
- else cout << "Ten rok nie jest przestepny" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment