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
#include<stdio.h>
#include<math.h>
int
main(int argc, char *argv[])
{
int days;
float peny;
do{
printf("Enter Number of days: ");
scanf("%d", &days);
}
while ((days != 28) || (days != 29) ||(days != 30) ||(days != 31));
printf("Number of days are %d", days);
}