So bad. If I want to put in integer number, and check if it equals 1, 3, 5, 7, 8, 10, 12 -> printf("has 31 days")... I mean use many case statement. So bad for C and C++.
Type: Posts; User: micheal9000
So bad. If I want to put in integer number, and check if it equals 1, 3, 5, 7, 8, 10, 12 -> printf("has 31 days")... I mean use many case statement. So bad for C and C++.
Please help me. I have code as following
#include <stdio.h>
int main()
{
int num = 1;
switch (num)