A for loop would be a good choice in this case.
To give you a head start:
#Take the smallest and largest numbers in input
for(float i = smallest ; i <= largest ; i = i+6 ){
#do your calculations
#Print out the number , endline
}
More Related Contents:
- my first c++ program runtime is super long like 5 – 10 minutes on a fast CPU it's a very basic c++ program [closed]
- Me not understanding do while loops [closed]
- Why do I keep getting an "expected expression error" in my While Loop? [closed]
- Dev C++ program closes immediately when entering letters
- C++: While Looping Amount of Times
- Using local variable outside its scope
- C++ Reading an unknown number of integers to cin and outputting the sum
- C++ while loop resetting variables?
- Triple Nested For loop (C++) [closed]
- For loop with an array
- C++ – How to clear variables after a while loop? [closed]
- c++ skipping the if and for loops?
- Declaring variables inside loops, good practice or bad practice?
- How to generate different random numbers in a loop in C++?
- How can I clear console
- How to change mode from c++98 mode in Dev-C++ to a mode that supports C++0x (range based for)?
- Is there any overhead to declaring a variable within a loop? (C++)
- For every character in string
- Good input validation loop using cin – C++
- Endless loop in C/C++ [closed]
- Why are memcpy() and memmove() faster than pointer increments?
- Repeated Multiple Definition Errors from including same header in multiple cpps
- read pixel value in bmp file [closed]
- Get current username in C++ on Windows
- How to break out of a loop from inside a switch?
- Is there ever a need for a “do {…} while ( )” loop?
- How does OpenMP handle nested loops?
- Reusing thread in loop c++
- Print 2-D Array in clockwise expanding spiral from center
- In C++ why can’t I write a for() loop like this: for( int i = 1, double i2 = 0;