‘@’문자를 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");
}

'코딩 > Language Coder' 카테고리의 다른 글

172 : 함수1 - 형성평가3  (0) 2018.06.29
171 : 함수1 - 형성평가2  (0) 2018.06.29
578 : 함수1 - 자가진단8  (0) 2018.06.29
577 : 함수1 - 자가진단7  (0) 2018.06.29
576 : 함수1 - 자가진단6  (0) 2018.06.29

+ Recent posts