All pastes #191121 Raw Edit

pcboy

public c v1 · immutable
·published 2006-10-04 17:44 UTC
rendered paste body
** NEWmy_aff_comb2.c for my aff comb II in /u/ept1/hagege_d/rendu/piscine/Jour_03**** Made by david hagege** Login   <hagege_d@epita.fr>**** Started on  Wed Oct  4 15:59:37 2006 david hagege** Last update Wed Oct  4 18:36:20 2006 david hagege*/int     show(int first, int second){  my_putchar( ( second / 10 ) + '0');  my_putchar( ( second % 10 ) + '0');  my_putchar(' ');  my_putchar( ( first / 10 ) + '0');  my_putchar( ( first % 10 ) + '0');  my_putchar(',');}int     show_without(int first, int second){  my_putchar( ( second / 10 ) + '0');  my_putchar( ( second % 10 ) + '0');  my_putchar(' ');  my_putchar( ( first / 10 ) + '0');  my_putchar( ( first % 10 ) + '0');}int     my_aff_comb2(){  int   first;  int   second;  first = 1;  second = 0;  while ( first + second < 197 )    {      show(first, second);      if (first < 100 )        {          first++;        }      while (first == 100 && second < 100)        {          second++;          first--;        }    }      if (second == 98 && first == 99)      {        show_without(first,second);      }}