Sunday 26 July 2015

  • Sunday, July 26, 2015

C++ programming code

#include<iostream>
#include<cstdlib>
 
using namespace std;
 
main()
{
   int n, max, num, c;
 
   cout << "Enter the number of random numbers you want ";
   cin >> n;
   cout << "Enter the maximum value of random number ";
   cin >> max;   
 
   cout << "random numbers from 0 to " << max << " are :-" << endl;
 
   for ( c = 1 ; c <= n ; c++ )
   {
      num = random(max);
      cout << num << endl;
   }         
 
   return 0;
}
Related Posts Plugin for WordPress, Blogger...

Vacancy

RBI has announced the recruitment for 134 GRADE B OFFICERS.
 The examination will be in two phases.
 The detailed advertisement will be published on 5th October.

Popular Posts