write a c++ program for generate odd number
#include "stdafx.h"
#include "conio.h"
#include <iostream>
#include <cstdlib>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int number;
cout<<"Enter how many number generate? : ";
cin>>number;
int count=0;
for(;;){
& int random_integer = rand()%500;
& if(random_integer%2==1){
& count+=1;
cout <<count <<" odd number is "<< random_integer << endl;
& }
& if(count==number){
& break;
& }
&
}
& & getch();
return 0;
}