#include<stdio.h>
int main()
{
	int choice;
		scanf("%d",&choice);
		switch(choice)
		{
			case 1:
			printf("HOT");
			break;
			case 2:
			printf("LUKE WARM");
			break;
			case 3:
			printf("COLD");
			break;
			default:
			printf("OUT OF RANGE");
		}
	return 0;
}
#include<stdio.h>
int main()
{
	int choice;
	while(1)
	{
		printf("\n1. Factorial");
		printf("\n2. Prime");
		printf("\n3. odd/even");
		printf("\n1. your Choice?");
		scanf("%d",&choice);
		int i,n,fact = 1,a,c=2,num;
		switch(choice)
		{
			case 1:	
			 printf("Enter a number to calculate it's factorial\n");
  scanf("%d", &n);
  for (i= 1; i <= n; i++)
    fact = fact * i;
  printf("Factorial of %d = %d\n", n, fact);
			break;
			case 2:
   printf("Enter a number to check if it is prime\n");
   scanf("%d",&a);
   for ( c = 2;c<= a-1;c++)
   {
      if ( a%c == 0 )
      {
         printf("%d is not prime.\n", a);
	 break;
      }
   }
   if ( c == a)
      printf("%d is prime.\n", a);
 
			break;
			case 3:
   printf("Enter an integer\n");
   scanf("%d",&num);
   if ( num%2 == 0 )
      printf("Even\n");
   else
      printf("Odd\n");
			break;
		}

	}
	return 0;
}
#include<stdio.h>
int main()
{
    int d1,d2,d3,d4,d5,sum;
    long num;
    printf("Enter a five digit number: ");
    scanf("%ld",&num);
    d1=(num%10);
    d2=(num%100)/10;
    d3=(num%1000)/100;
    d4=(num%10000)/1000;
    d5=(num/1000);
    sum=d1+d2+d3+d4+d5;
    printf("\n The sum of the digis is: %d",sum);
	return 0;
}
#include<stdio.h>
int main()
{
	int days;
	scanf("%d",&days);
	if(days<=5)
		printf("Fine is 50 paise");
else	if(days>5&&days<=10)
printf("Fine is 1 rupee");
	else if(days>10&&days<=30)
		printf("Fine is 5 rupee");
else	if(days>30)
		printf("Membership cancelled");
	return 0;
}
    #include<stdio.h>
    int main()
    {
    char ch;
    printf("Enter a character");
    scanf("%c",&ch);
    if((ch>=65)&&(ch<=90))		
printf("Capital Lette\nr"); 
	else if((ch>=97)&&(ch<=122))
		printf("Small Letter\n");
		else if((ch>=48)&&(ch<=57))
		printf("Number\n");
		else if(((ch>=0)&&(ch<=47))||((ch>=58)&&(ch<=64))||((ch>=91)&&(ch<=96))||((ch>=123)&&(ch<=127)))
	printf("Enter Special Symbol\n");
    return 0;
    }

#include<stdio.h>
int main()
{
	char ch;
	while(1)
	{
		scanf("%c",&ch);
		if(ch=='a'||ch=='A'||ch=='e'||ch=='E'||ch=='i'||ch=='I'||ch=='o'||ch=='O'||ch=='u'||ch=='U')
			break;
	}
	return 0;
}

    #include<stdio.h>
    int main()
    {
    char ch;
    printf("Enter a character");
    scanf("%c",&ch);
    if((ch>=65)&&(ch<=122))
		{
    ch=ch-32;
    printf("The upper case character corresponding is=%c\n",ch);
}
	else
		printf("Enter Invalid");
    return 0;
    }

    #include<stdio.h>
    int main()
    {
    char ch;
    printf("Enter a character");
    scanf("%c",&ch);
    if((ch>=65)&&(ch<=122))
		{
    ch=ch+32;
    printf("The lower case character corresponding is %c\n",ch);
}
	else 
		printf("Enter Invalid");
    return 0;
    }