/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        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-2024.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2021-2024.