JakubKaczmarek_123

zadanie 16

Nov 13th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. int x;
  5.  
  6. int main()
  7. {
  8.     cout << "Podaj rok: " << endl;
  9.     cin >> x;
  10.     if(((x%4==0)&&(x%100!=0))||(x%400==0)) cout << "Ten rok jest przestepny" << endl;
  11.     else cout << "Ten rok nie jest przestepny" << endl;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment