Skip to content
Snippets Groups Projects
Select Git revision
  • 0d960b80c063e98f7373a526290d8f602bd4e199
  • master default protected
  • refactoring
  • push_test
  • qpong_opengl
  • push_to_gitlab
  • feature_imgui_opengl
  • feature_google_test_integration
  • feature_config
  • merge_ci_and_googletest
  • feature_pixbuf
  • feature_heapBuffer
12 results

Dockerfile

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;
    }