[문제] 초등학생도 풀만한 기초 문제 – 2 : 삼각형 변형 1

다음과 같은 결과값을 화면에 출력하는 프로그램을 작성하세요.

*****
****
***
**
*

조건 1. 반복문 2개, 출력문 2개, 변수 2개만을를 사용할 것
조건 2. 최소한의 연산만으로 작동 시킬 것.

크게 변한 것이 없는 문제! 저번 시간에 열심히 공부한 착한 학생은 쉽게 풀 수 있을 거에요 ^^
참, 이번에도 소스 올리는건 금지 에요~ 아셨죠?.

Trackback 1 Comment 4

Trackback : http://blog.myhyuny.com/trackback/126 관련글 쓰기

  1. Subject 2 : 삼각형 변형 1

    Tracked from D's World 2008/09/24 12:43 delete

    #include <stdio.h> int main() { int i,j; for (i=5;i>0;i--) { for(j=0;j<i;j++) { putchar('*'); } putchar('\n'); } } http://blog.myhyuny.com/entry/강좌-초등학생도-풀만한-기초-문제-–-2-삼각형-변형-1-문제

  1. Favicon of http://mydb.tistory.com BlogIcon 파도소리 2007/01/17 01:45 address edit & del reply

    printf("*****\n****\n***\n**\n*\n";);

    • Favicon of http://www.myhyuny.net BlogIcon 화현 2007/01/17 02:13 address edit & del

      1달 뒤에 오면 너한테 맞을만한 문제가 나올꺼다 -_-;;;

  2. Favicon of http://mydb.tistory.com BlogIcon 파도소리 2007/01/19 02:50 address edit & del reply

    한달뒤면 군대..

    • Favicon of http://www.myhyuny.net BlogIcon 화현 2007/01/20 00:13 address edit & del

      캐안습 ㅠ.ㅠ