Do while loop in C or C++ for multiple inputs
<p>Following is the code snippet i'm working, although I need 4 values for my input, until the user types correct value, it should keep asking, any inputs on the same
Thanks in advance</p>

<pre><code>#include&lt;stdio.h&gt;
#include&lt;math.h&gt;

int
main(int argc, char *argv[])
{
        int days;
        float peny;

        do{
                printf("Enter Number of days: ");
                scanf("%d", &amp;days);
        }
        while ((days != 28) || (days != 29) ||(days != 30) ||(days != 31));
        printf("Number of days are %d", days);


}
</code></pre>
