C/C++: Génerer des nombres aléatoires

Author:


Download

  #include 
  #include 

  int main(void)
  {
    int i;

    for(i=0; i<10; i++)
	{
	  int nbr=rand();
      printf("Nombre: %d * %d=%dn", nbr, i, nbr*i);
    }

    return 0;
  }

Leave a Reply

Your email address will not be published. Required fields are marked *

C/C++: Génerer des nombres aléatoires

Author:


Download

  #include 
  #include 

  int main(void)
  {
    int i;

    for(i=0; i<10; i++)
	{
	  int nbr=rand();
      printf("Nombre: %d * %d=%dn", nbr, i, nbr*i);
    }

    return 0;
  }

Leave a Reply

Your email address will not be published. Required fields are marked *