0

i need in c++ for running in a compiler
this


1
12
123
1234
12345
123456

and another c++ file

654321
54321
4321
321
21
1


everyone can help me i need a code for running in c++.net
i need exactly in the output

4
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by Narue
0

To minimize the risk of being flamed, quickly post your pseudocode (algorithms) for this homework, to demonstrate it's only a programming language issue....

0

This is what you want ?

#include <iostream>
using namespace std;

void main()
{
	for (int j = 1; j <=6; j++) {
		for (int i = 1; i<=j; i++) {cout << i; }
		cout << endl;
	}
	return;
}

and another file is

#include <iostream>
using namespace std;

void main()
{
	for (int j = 6; j >=1; j--) {
		for (int i = j; i>=1; i--) {cout << i; }
		cout << endl;
	}
	return;
}
0

thanks i just started in this class in the university

yes that i want but he correct i think that have a error


thanks for all


:o

0

>This is what you want ?
No, that's not what he wants, but it's exactly what he deserves. Broken code using poor practices so that he'll get a failing grade even if he isn't expelled for cheating.

For future reference invisal, we don't do homework for other people because it hurts everyone and helps no one. So the next time I see you do it, I'll take disciplinary action since giving out homework answers is also blatant a disregard for the rules of this forum.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.