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

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

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;
}

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

>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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.