728x90
반응형
문제 : http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=70&sca=10b0
문제
‘@’문자를 10개 출력하는 함수를 작성 한 후 함수를 세 번 호출하여 아래와 같이 출력하는 프로그램을 작성하시오.
출력 예
first
@@@@@@@@@@
second
@@@@@@@@@@
third
@@@@@@@@@@
코드 :
# include <stdio.h>
void print();
int main()
{
printf("first\n");
print();
printf("second\n");
print();
printf("third\n");
print();
return 0;
}
void print()
{
printf("@@@@@@@@@@\n");
}
728x90
반응형
최근댓글