fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main(void)
  4. {
  5. int numero;
  6. cout <<"Escribe un numero\n";
  7. cin >> numero;
  8. if (numero % 4 == 0)
  9. {
  10. cout <<"Es bisiesto\n";
  11. }else{
  12. if (numero % 4 != 0)
  13. {
  14. cout <<"No es bisiesto\n";
  15. }
  16. }
  17. }
Success #stdin #stdout 0s 3472KB
stdin
476
stdout
Escribe un numero
Es bisiesto