Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Aekae/*: Difference between revisions

From ZeroWiki
imported>Unknown
No edit summary
 
(Repair batch-0008 pages from live compare)
 
Line 40: Line 40:
----
----
[aekae]
[aekae]

Latest revision as of 01:40, 27 March 2026

소스 Code

#include <iostream>
using namespace std;

int main()
{
	int i;
	
	int a,b,c,d;
	
	for (i=1; i<11; i++)
	{
		for (a=1; a<1+i; a++)
			cout << "*";
		for (b=1; b<12-i; b++)
			cout << " ";
		for (c=1; c<12-i; c++)
			cout << "*";
		for (d=1; d<2*i; d++)
			cout << " ";
		for (c=1; c<12-i; c++)
			cout << "*";
		for (b=1; b<12-i; b++)
			cout << " ";
		for (a=1; a<1+i; a++)
			cout << "*";
		cout << endl;
	}

	return 0;
}

하고싶은말

허접하지만;; 중복되는 for문이 있는데 그걸 어찌 처리해야하는지 모르겠네요. 내공을 더 쌓아야지. -- [aekae]


재선아 굿샷. 근데 정말로 For 문이 넘 많네. - 장창재

오~ 잘하는데? 이정도면 For 문은 완벽하게 이해했다고 봐도 되겠는걸?? ^^; - 상욱([whiteblue])


[aekae]