Question: i got a problem in this c++ program i dont know how to reduce the number of spaces between each one of them this is

i got a problem in this c++ program i dont know how to reduce the number of spaces between each one of themi got a problem in this c++ program i dont know how this is my code

#include #include #include #include using namespace std; int main(){ /** * Three integer variables are declared below */ int start, stop, step;

/** * An integer named iterationCount is declared */ int iterationCount;

/** * Prompting user to enter start, stop and step values * inside a while loop * This while loop runs until all the constraints are not satisfied */ while(true){ cout>start>>stop>>step;

/** * Calculating iteration count */ iterationCount=(stop-start)/step + 1;

/** * Checking validity of each condition */ if(stop50){ cout

/**********************************************************/ /*** WRITTING DATA TO FILE NAMED number-table.txt ***/ /**********************************************************/

/** * Opening the file */ ofstream file; file.open("number-table.txt"); if(file.is_open()){ file

file

file

file

file

file

file

file

file

Output is nearly correct; but whitespace differs. See highlights below. Special character legend Input 1 10 1 NumberSquared Cubed Square-Root 16 25 3 6 4 9 64 81 100 27 64 125 216 343 512 729 1000 1.00000000 1.41421356 1.73205081 2.00000000 2.23606798 2.44948974 2.64575131 2.82842712 3.00000000 3.16227766 Your output 10 Number Squared Cubed Square-Root 16 25 3 6 49 64 81 100 27 64 125 216 343 512 729 1000 1.00000000 1.41421356 1.73205081 2.00000000 2.23606798 2.44948974 2.64575131 2.82842712 3.00000000 3.16227766 Expected output 10

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!