/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        T E S T   D E S   I T E R A T I O N   S U R   L ' I N F I N I  :                                                           */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xtc/infini.01$c' :                                                                                             */
/*                                                                                                                                   */
/*                    Jean-Francois Colonna (LACTAMME, AAAAMMJJhhmmss).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

#define   INFINI                                                                                                                        \
                    2147483647

main()
     {
     int       n;

     printf("\n-INFINI+1");
     for       (n=(-INFINI+1) ; n<=(-INFINI+1) ; n++)
               {
               printf("\n n=%d",n);
               }

     printf("\nINFINI-1");
     for       (n=(INFINI-1) ; n<=(INFINI-1) ; n++)
               {
               printf("\n n=%d",n);
               }

     printf("\n-INFINI");
     for       (n=(-INFINI) ; n<=(-INFINI) ; n++)
               {
               printf("\n n=%d",n);
               }

     printf("\nINFINI");
     for       (n=(INFINI) ; n<=(INFINI) ; n++)
                                        /* Cette sequence boucle...                                                                  */
               {
               printf("\n n=%d",n);
               }
     }



Copyright © Jean-François Colonna, 2021-2021.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / Ecole Polytechnique, 2021-2021.