Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

입력 방법 이슈 #1

Open
beargrllys opened this issue Mar 30, 2021 · 0 comments
Open

입력 방법 이슈 #1

beargrllys opened this issue Mar 30, 2021 · 0 comments

Comments

@beargrllys
Copy link

Jaram_3_1/1.c

Line 13 in 23db524

scanf("%d %d %d %d %d %d %d %d %d %d", a, a+1,a+2,a+3,a+4,a+5,a+6,a+7,a+8,a+9);

이런식으로 입력 받아도 되지만 공백으로 구분된 한줄로 여러개의 변수에 값을 입력 받을 때에는

while(~){
scanf(~);
}

이렇게 받아도 됩니다. 왜냐하면 scanf는 일반적으로는 공백을 걸러 받기 때문입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant