C/C++: Générer des nombre aléatoire avec la fonction ‘rand()’

Author:


Download


#include 
#include 

int main(void)
{
  int i;

  for( i = 0; i < 10; i++)
  {
	int a=rand();
	int b=rand();
	int somme= a*b;
	printf("A:%d + B:%d = %10dn", a, b, somme);

  }

  return 0;
}

Leave a Reply

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