we can generate random number through rand() function.
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a;
int b;
for(a=1;a<11;a++)
{
b=rand();
printf(“%d\n”,b);
}
return 0;
}
we can generate random number through rand() function.
#include<stdio.h>
#include<stdlib.h>
int main()
{
int a;
int b;
for(a=1;a<11;a++)
{
b=rand();
printf(“%d\n”,b);
}
return 0;
}