Skip to content
Snippets Groups Projects
Select Git revision
  • ba5e9f17a14e5519432b9a229d82ba17ff69ca54
  • master default protected
  • revert-caf3bee6
  • est-autem-a-officia-quibusdam-et-dolor
  • dignissimos-libero-alias-distinctio-sequi-mollitia-quia
  • repudiandae-quia-repellat-ipsa-enim-pariatur-quae
  • voluptatibus-ut-earum-fuga-reprehenderit-repudiandae-id
  • doloremque-qui-facere-quo-ea-vel-nostrum
  • quod-expedita-vitae-voluptatum-quo-qui-ipsum
9 results

deckblatt-cvh.tex

Blame
  • loesung-1.1-03.c 550 B
    #include <stdio.h>
    
    int main (void)
    {
      int year = 42;
      printf ("Jahr: ");
      scanf ("%d", year);
      if (year % 4 == 0)
        {
          if (year % 400 == 0)
            {
              printf ("%d ist ein Schaltjahr.\n", year);
              return 0;
            }
          else if (year % 100 == 0)
            {
              printf ("%d ist kein Schaltjahr.\n", year);
              return 0;
            }
          else
            {
              printf ("%d ist ein Schaltjahr.\n", year);
              return 0;
            }
        }
      else
        printf ("%d ist kein Schaltjahr.\n", year);
      return 0;
    }