0 LIKES LikeUnLike
help me please with this code my problem is if i enter 12 in month and 35 in day it will also says that you are capricorn how can i limit the day up to 31 only?#include <stdio.h>#define p printf#define s scanfmain(){int month,day;clrscr();p("Enter Month of Birthday: ");s("%d",&month);p("Enter Day of Birthday: ");s("%d",&day);if(month==12 && day>=22){p("You are Capricorn");}else if(month==1 && day<=19){p("You are Capricorn");}getch();return 0;
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 2 answers.