Answer:
// program in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
// variable
int inp_month;
cout<<"Enter month:";
// read month
cin>>inp_month;
// if month is february
if(inp_month==2)
cout<<"Number of days in month:28"<<endl;
// if month is 4 or 6 or 9 or 11
else if(inp_month==4
Step-by-step explanation:
Read month from user and assign it to variable "inp_month".If month is 2 then there is 28 days in the month.If input month is 4 or 6 or 9 or 11 then there is 30 days in the month.For other month there will be 31 days in month.We assume there is no leap year.
Output:
Enter month:4
Number of days in month:30