#include<iostream.h>
#include<conio.h>
#include<stdlib.h> // defines the rand( ) function
void main ( )
{
int z ;
z = rand ( ) ;
cout<< "\n The 1st random number is "<<z ;
z = rand () ;
cout<< "\n The 2nd random number is "<<z ;
getch ( ) ;
}
Labels: C++ Codes, C++ Function Codes, C++ Other Codes
Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies| |
---|
0 comments:
Post a Comment