Skip to content
Snippets Groups Projects
Select Git revision
  • e48924b57cd3dd2afba7122942909b21f332715f
  • master default protected
  • 2018ws
  • 2017ws
  • 2016ws
5 results

if-7.c

Blame
  • Forked from Peter Gerwinski / hp
    286 commits behind the upstream repository.
    if-7.c 228 B
    #include <stdio.h>
    
    int main (void)
    {
      int b = 7;
      if (b)
        {
          printf ("100 / b = %d\n", 100 / b);
          printf ("100 %% b = %d\n", 100 % b);
        }
      else
        printf ("Bitte nicht durch 0 dividieren!\n");
      return 0;
    }