Tuesday, August 23, 2011

Generating the Random number

#include <stdlib.h>
#include <stdio.h>
int main(void)
{
 int i;
printf("Ten random numbers from 0 to 99\n\n");
for(i=0; i<10; i++)
printf("%d\n", rand() % 100);
getch();
return 0;
}