My photo
Bangalore, Karnataka, India
Extending one hand to help someone has more value rather than joining two hands for prayer

Archives

program to print a random number

Tuesday, September 1, 2009

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include<conio.h>

/* prints a random number in the range 0 to 99 */
int main(void)
{
   randomize();
   printf("Random number in the 0-99 range: %d\n", random (100));
   getch();
   return 0;
}

0 comments: