In this article, we will discuss the concept of C program to count the total number of words in the given string using for, while and dowhile loop in C.