Skip to content
Snippets Groups Projects
Select Git revision
  • a749b7101e2c9c1b12e7bacf06873f1b34ceebb7
  • master default
  • 2015ss
  • 2014ss
4 results

pipes-20160418-3.log

Blame
  • Forked from Peter Gerwinski / bs
    Source project has a limited visibility.
    loesung-1.1-09.c 358 B
    #include <stdio.h>
    
    int main (void)
    {
      int year = 42;
      printf ("Jahr: ");
      scanf ("%d", &year);
      if (year <= 1752)
        printf ("Zulässige Jahreszahlen: größer als 1752.\n");
      else if (year % 4 == 0 && (year % 400 == 0 || year % 100))
        printf ("%d ist ein Schaltjahr.\n", year);
      else
        printf ("%d ist kein Schaltjahr.\n", year);
      return 0;
    }