Advertisement
orlandoju

Ejer14_tp2

Mar 31st, 2022
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main(void){
  6.  
  7. int anio;
  8.  
  9. cout<< "Ingrese el anio: " ;
  10. cin>> anio;
  11. if(anio%4==0 && anio%100!=0 || anio%400==0){
  12. cout<<"Es Bisiesto ";
  13. }
  14. else{
  15. cout<<"No es bisiesto";
  16. }
  17.  
  18. return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement