# data[].attributes.headline
#include #include int main(){int num;    printf("Please enter a number from 1 to 5: \n");    scanf("%d", &num);    switch (num){  case 1:    printf("Your lucky colour is green: %d", num);    break;  case 2:    printf("Your lucky colour is yellow: %d", num);    break;  case 3:    printf("Your lucky colour is purple: %d", num);    break;  case 4:    printf("Your lucky colour is blue: %d", num);    break;  case 5:    printf("Your lucky colour is orange: %d", num);    break;  default:    printf("You are not lucky colour");    break;}    return 0;}

# data[].attributes.subject
#include #include int main(){int num;    printf("Please enter a number from 1 to 5: \n");    scanf("%d", &num);    switch (num){  case 1:    printf("Your lucky colour is green: %d", num);    break;  case 2:    printf("Your lucky colour is yellow: %d", num);    break;  case 3:    printf("Your lucky colour is purple: %d", num);    break;  case 4:    printf("Your lucky colour is blue: %d", num);    break;  case 5:    printf("Your lucky colour is orange: %d", num);    break;  default:    printf("You are not lucky colour");    break;}    return 0;}

# data[].attributes.headline
#include #include int main(){    int num;    printf("Welcome to lucky draw world!\n");    printf("Please choose a number from 1 to 5\n");    scanf("%d",&num);    switch(num)    {    case 1:        printf("Your colour is Green\n");        break;    case 2:        printf("Your colour is yellow\n");        break;    case 3:        printf("Your colour is purple\n");        break;    case 4:        printf("Your colour is blue\n");        break;    default:        printf("Your colour is orange\n");        break;    }    return 0;}

# data[].attributes.subject
#include #include int main(){    int num;    printf("Welcome to lucky draw world!\n");    printf("Please choose a number from 1 to 5\n");    scanf("%d",&num);    switch(num)    {    case 1:        printf("Your colour is Green\n");        break;    case 2:        printf("Your colour is yellow\n");        break;    case 3:        printf("Your colour is purple\n");        break;    case 4:        printf("Your colour is blue\n");        break;    default:        printf("Your colour is orange\n");        break;    }    return 0;}

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>

int main()
{
int num;
printf("Please enter a number from 1 to 5:\n");
scanf("%d",&num);
switch (num)
{
case 1:
printf("Green is your colour lucky!",num);
break;
case 2:
printf("Yellow is your colour lucky!",num);
break;
case 3:
printf("Purple is your colour lucky!",num);
break;
case 4:
printf("Blue is your colour lucky!",num);
break;
case 5:
printf("Orange is your colour lucky!",num);
break;
default:
printf("You entered the wrong value");
break;
}

return 0;
}

# data[].attributes.body
#include <stdio.h>

int main() {

int num;
printf("Enter a number between 1 to 5 and i tell your lucky colour: \n");
scanf("%d", &num);

switch(num)
{
case 1:
printf("Your lucky colour is GREEN");
break;

case 2:
printf("Your lucky colour is YELLOW");
break;

case 3:
printf("Your lucky colour is PURPLE");
break;

case 4:
printf("Your lucky colour is BLUE");
break;

case 5:
printf("Your lucky colour is ORANGE");
break;

default:
printf("Error!");
}

return 0;
}

# data[].attributes.body
EC16015

# data[].attributes.attachment_link.readable_text
#include <stdio.h>
#include <stdlib.h>

int main()
{
        int num;
        printf("Please enter a number from 1 to 5:\n");
        scanf("%d",&num);
        switch(num)
        {
          case 1:
          printf("Your lucky colour is green.\n");
          break;

          case 2:
            printf("Your lucky colour is yellow.\n");
          break;

          case 3:
             printf("Your lucky colour is purple.\n");
          break;

          case 4:
             printf("Your lucky colour is blue.\n");
          break;

          case 5:
             printf("Your lucky colour is orange.\n");
          break;
        }



    return 0;
}

# data[].attributes.body
#include <stdio.h>

int main ()
{
int num ;

printf (" enter no from 1 until 5 \n\n") ;
scanf ("%d", &num) ;

switch (num)

{
case 1 :
printf(" your lucky colour is green" , num) ;
break ;

case 2 :
printf(" your lucky colour is yellow" , num) ;
break ;

case 3 :
printf(" your lucky colour is purple" , num) ;
break ;

case 4 :
printf(" your lucky colour is blue" , num) ;
break ;

default :
printf(" your lucky colour is orange" , num) ;
break ;
}
return 0;
}

# data[].attributes.body
EC15053

#include <stdio.h>

#include <stdlib.h>

int main()

{

int color;

printf("-----------------PLEASE SELECT THE NUMBER FROM 1 TO 5 TO CHOOSE YOUR LUCKY COLOUR----------------\n");

scanf("%d", &color);

switch(color)

{

case 1:

printf("Your color is Green", color);

break;

case 2:

printf("Your color Yellow", color);

break;

case 3:

printf("Your color is Purple", color);

break;

case 4:

printf("Your color is Blue", color);

break;

case 5:

printf("Your color is Orange", color);

break;

default:

printf("You entered an out of range value");

break;

}

return 0;

}

# data[].attributes.attachment_link.readable_text
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int num1;


    printf("\nENTER YOUR SELECTION : ");
    printf("\n\nno1\n\nno2\n\nno3\n\nno4\n\nno5\n");
    scanf("%d",&num1);


switch (num1)
{
	case 1:
			printf ("your choice of colour is green \n");
			break;
	case 2:
			printf ("your choice of colour is yellow  \n");
			break;

	case 3:
			printf ("your choice of colour is purple \n");
			break;

	case 4:
			printf ("your choice of colour is blue \n");
			break;
    case 5:
			printf ("your choice of colour is orange\n");
    default :
        printf("\nSorry Invalid");

}


}

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>

int main()
{
int colour;

printf("Enter a random number from 1 to 5.\n");
scanf("%d",&colour);

switch(colour)
{
case 1:
printf("Your lucky colour is GREEN.\n");
break;

case 2:
printf("Your lucky colour is YELLOW.\n");
break;

case 3:
printf("Your lucky colour is PURPLE.\n");
break;

case 4:
printf("Your lucky colour is BLUE.\n");
break;

case 5:
printf("Your lucky colour is ORANGE.\n");
break;
}
return 0;
}

# data[].attributes.headline
EA16103                                    #include #include                                          int main(){int colour;printf("Enter a number from 1 to 5 to choose a color\n");scanf("%d",&colour);switch (colour){	case 1:			printf ("Your color is green \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;	case 2:			printf ("Your color is Yellow \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;	case 3:			printf ("Your color is Purple \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;	case 4:			printf ("Your color is Blue \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;    case 5:			printf ("Your color is Orange \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;default :			printf ("Your number is not available, you are very unlucky today, pray to your god everyday...\nGood luck!!! \n");}     return 0;}

# data[].attributes.subject
EA16103                                    #include #include                                          int main(){int colour;printf("Enter a number from 1 to 5 to choose a color\n");scanf("%d",&colour);switch (colour){	case 1:			printf ("Your color is green \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;	case 2:			printf ("Your color is Yellow \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;	case 3:			printf ("Your color is Purple \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;	case 4:			printf ("Your color is Blue \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;    case 5:			printf ("Your color is Orange \n");			printf("Congratulation! This is your lucky color, wear this color everyday..(^.^)\n");			break;default :			printf ("Your number is not available, you are very unlucky today, pray to your god everyday...\nGood luck!!! \n");}     return 0;}

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>

int main()
{
int num;
printf("Enter a number from 1 to 5.\n");
scanf("%d",&num);

switch(num)
{
case 1:
printf("Congratulations! Your lucky colour is Green.",num);
break;
case 2:
printf("Congratulations! Your lucky colour is Yellow.",num);
break;
case 3:
printf("Congratulations! Your lucky colour is Purple.",num);
break;
case 4:
printf("Congratulations! Your lucky colour is Blue.",num);
break;
default:
printf("Congratulations! Your lucky colour is Orange.",num);

}

return 0;
}

# data[].attributes.body
int main() {
int colour = 1;
printf("Please choose a color \n 1:Green \n 2:Yellow \n 3:Purple \n 4:Blue \n 5;Orange \n ");
scanf("%d", &colour);

switch (colour) {
case 1:
printf("you chose Green colour \n");
break;
case 2:
printf("you chose Yellow colour \n");
break;
case 3:
printf("you chose Purple colour \n");
case 4:
printf("you chose Blue colour \n");
break;
case 5:
printf("you chose orange colour \n");
break;
default:
printf("you did not choose any colour \n");
}
return 0;
}

# data[].attributes.body
#include <stdio.h>
#include <stdlib.h>

int main()
{
int num;
printf("Please enter your lucky number 1 to 5\n");
scanf("%d",&num);
switch (num)
{
case 1:
printf("your lucky colour is green\n");
break;
case 2:
printf("your lucky colour is yellow\n");
break;
case 3:
printf("your lucky colour is purple\n");
break;
case 4:
printf("your lucky colour is blue\n");
break;
case 5:
printf("your lucky colour is orange\n");
break;
default:
printf("your number is out of range\n");
}
return 0;
}

# data[].attributes.body
suhaimi
#include <stdio.h>

#include  <stdlib.h>

int main()

{

int number;

printf("Select a number between 1 to 5 and i will tell your lucky colour\n");

scanf("%d", &number);

switch(number)

{

case 1:

printf("Your lucky colour is GREEN");

break;

case 2:

printf("Your lucky colour  is YELLOW");

break;

case 3:

printf("Your lucky colour  is PURPLE");

break;

case 4:

printf("Your lucky colour  is BLUE");

break;

case 5:

printf("Your lucky colour  is ORANGE");

break;

// operator is doesn't match any case constant (+, -, *, /)

default:

printf("Error! the number that you entered is out of range");

}

return 0;

}