I don't understand why you need to write vertically in order to accomplish this. What kind of accomplish where you hoping to implement that required it?
Actually this question is from my lecturer, We are in our 2nd class and I don't understand more in C++.
In first class we took only 3 programs: measuring MBI, calculating tax and calculating the balance of customers. It was simple programs and we only used simple functions and variables.
What's going on here is that a value, N, is being increased from one to five (for example, in a for loop), and each time, the program outputs the value of N, and 10 N, and 100 N, and 1000 N.
I hope following will help....
I know moschops have already told what he need to know(with very small correction ;-) (I hope moschops won't mind this correction for helping newbie)). And
hm222hm might need whole thing.
hm222hm, also note one thing once you moved out from one horizontal line of monitor output, you won't be able to print on it again. So waht ever you want to do in one horizontal line you have to finish it in one stroke.
1 2 3 4 5 6 7 8 9 10 11
#include <iostream>
int main()
{
// draw basic data what you need to show
std::cout << "N" << "10*N" << "100*N" << "1000*N" << std::endl;
// it will print data on monitor by horizontal line
for(int i = 1; i <=5; i++)
std::cout << i << 10*i << " " << 100*i << " " << 1000*i << std::endl;
// adjust your output using spaces to look better.
return 0;
}
just acn is enough .....
(1) is no of posts one has posted on forum.....
You kinda new to forum things too. but hope you will get going soon.
best luck for future. keepoo...