22 lines
236 B
C
22 lines
236 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(void) {
|
||
|
int words = 0;
|
||
|
(void)printf("Enter your Text: ");
|
||
|
|
||
|
while(getchar() != "\n") {
|
||
|
words ++;
|
||
|
|
||
|
}
|
||
|
|
||
|
(void)printf(%d, words);
|
||
|
//scanf("%lf", &Text);
|
||
|
|
||
|
|
||
|
|
||
|
return EXIT_SUCCESS;
|
||
|
|
||
|
|
||
|
}
|