answersLogoWhite

0

for(unsigned num=1; num<0xffffffff; ++num)

if(num%5==0 && num%6==0)

std::cout<<num" is divisible by 5 and 6"<<std::endl;

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How do you Open a text file as C plus plus source code?

All C++ source code is is a text file with the .cpp extension. So if you save your code as *****.cpp then it is automatically C++ source code.


What percent of the numbers are not divisible by 5 or 10?

80%. Out of every ten numbers, one is divisible by 10, and that same one plus one moreare both divisible by 5. The remaining eight are divisible by neither 5 nor 10.


Source code of DSR and AODV in C plus plus?

code source de dsr sous omnet++4.1 en .cc


Why 9342 is divisible by 9?

To find out if a number is divisible by 9 u add the numbers together for example 9 plus 3 is 12 plus 4 is 16 plus 2 is 18 and 18 is divisible by 9 so so is tht large number:) the answer is 1048:))


What is a source code file in c plus plus?

A source code file is a plain-text file containing C++ instructions. The instructions must be compiled and linked to create a native machine code executable.


What are top ten numbers divisible by two?

There are no top numbers. Suppose there was a top number that was divisible by two. Then that number plus two would be divisible by two and it would be bigger than the top number. So the first number could not have been a top number.


What is the differentiate of turbo c from turbo c plus plus?

Turbo C compiles c source. turbo c++ compiles c++ source code.


A c plus plus code name sumcpp saved on a diskis it process or job?

It is neither. It is a source file.


Where do you get c plus plus software?

A good open source IDE for C++ would be Code::Blocks or Notepad++.


Can anyone provide me a executable C or C plus plus language source code for netstat in Windows XP environment?

Netstat for Windows is provided by Microsoft itself, so you're unlikely to find any source code for it. However you may find Linux versions of Netstat source code available. The functionality may differ to some extent, but how useful they are will depend on why you need the source code in the first place.


What do you mean by running of a program in c plus plus?

In order to run a C++ program the program must be compiled and linked to create an executable. It is the executable that actually runs, not the source code. The source code is simply the human-readable code the compiler requires to generate object code for the linker which produces the machine-readable code. However, when the executable is executed within a debugging environment, we can set breakpoints in the source code and step through the source code just as if the source itself were executing, as would be the case if C++ were an interpreted language. Unlike an interpreted language where we can change the source code and see the results immediately, the source code (or at least the portion that has changed) must be recompiled to accommodate the changes.


What numbers are divisible by 3 and 8?

Numbers that are divisible by both 3 and 8 must be divisible by their least common multiple, which is 24. Therefore, any number that is a multiple of 24 will be divisible by both 3 and 8. Examples of such numbers include 24, 48, 72, 96, and so on.