|
안녕하세요? ^-^
디금 한창 씨 공부중인뎅 또 막히네요.. ㅠㅠ 왜 안되는건지 모르겠어요..
잘못된 부분 지적좀 해주세요 (__)
#include <stdio.h>
#include <conio.h>
#define PERIOD '.'
void main() {
int chcount = 0;
int ch;
while((ch = getchar()) != PERIOD) {
if(ch != 32 && ch != 10 && ch != 9)
chcount++;
}
printf("%d", chcount);
getch();
}
|