How to make this work
#include <stdio.h>
#include <conio.h>
main()
{
char C;
printf("R=This Program gives you some of the information of the country you entered.");
printf("Enter a Country:");
scanf("%c", &C);
switch(C)
{
case 'Algeria':
printf("Capital: Algiers");
printf("Currency and Country Code: Algerian Dinar (DZD)");
break;
}
getch ();
return 0;
}
The Error is
11 8 C:\Users\Edrian\Desktop\C++ Codes\World Information.cpp [Warning] character constant too long for its type
C:\Users\Edrian\Desktop\C++ Codes\World Information.cpp In function 'int main()':
11 8 C:\Users\Edrian\Desktop\C++ Codes\World Information.cpp [Warning] case label value exceeds maximum value for
type