473,544 Members | 1,959 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

randamize

4 New Member
#include<iostre am.h>
#include<stdlib .h>
#include<conio. h>
voidmain()
{
randamize();
int num,rndnum;
cin>>num;
rndnum=random(n um)+9;
for9int N=1;N=rndnum-1;N++)
cout<<N<<"";
}
Jul 19 '10 #1
3 1515
Dheeraj Joshi
1,123 Recognized Expert Top Contributor
And what is the question?

Regards
Dheeraj Joshi
Jul 19 '10 #2
jijo k abraham
4 New Member
in the objective

1234
12
123456789
123

please which is the correct one???
Jul 19 '10 #3
jijo k abraham
4 New Member
#include<stdlib .h>
#include<iostre am.h>
#include<conio. h>
intmain()
{
int n,guessnum;
randomize();
cin>>n;
guessnum=random (n-10)+10;
cout<<guessnum< <endl:
}



this is also anothe questio

if we give inputs 1,2,3, or 4
what will be the answer?
Jul 19 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1407
by: jijo k abraham | last post by:
#include<stdlib.h> #include<iostream.h> #include<conio.h> intmain() { int n,guessnum; randomize(); cin>>n; guessnum=random(n-10)+10; cout<<guessnum<<endl:
0
7424
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7772
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7376
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5297
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3409
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1841
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
988
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
661
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.