728x90
반응형
문제 : https://codeup.kr/problem.php?id=1735
hello라는 글자를 nn번 반복 출력하는 프로그램을 작성하시오.
예를 들어 nn이 55가 입력되면, hello를 55줄에 걸쳐 출력한다.
# include <stdio.h>
int main()
{
int i,n;
scanf("%d",&n);
for(i = 0; i<n; i++)
{
printf("hello\n");
}
return 0;
}
728x90
반응형
최근댓글