while 반복문에서 %10d 가 안되요 ㅠㅠ
아이돌
2023.04.01
질문 제목 : while 반복문에서 %10d 가 안되요 ㅠㅠwhile 반복문에서 %10d 가 안되요 ㅠㅠ질문 내용 :
#include stdio.h
#include conio.h
int main()
{
int a,b;
a=0;
printf( 원하는 수를 입력해주세요. : );
scanf(%d, &b);
while(ab)
{
printf(%10d test\n); //여기서 10칸 띈후 오른쪽 정렬인데 괴상한숫자만 나오고 안되네요 왜죠??;
a++;
}
getch();
return 0;
}