#include <stdio.h> int main() { int birth_day, birth_month; scanf("%d %d", &birth_day, &birth_month); if (birth_month == '1') { if (birth_day < 20) { printf ("Capricorn\n"); } } }
if (birth_month == '1') // you are trying to compare an int with a char type // correct code is as follows: if (birth_month == 1) // integer value 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)