Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  mmm
Language: C/C++
Code:
#include<stdio.h>
main()
{
    char red,yellow,green;
     printf("red,yellow,green n");

     

     scanf("%c",&red);
     {
     if (red=='a')
     {     
     printf("red is onn");
     }
     else 
     {
     printf("yellow is onn");
     }
     }
     scanf("%c",&yellow);
     {
     if (yellow=='b')
     {
     printf("yellow is onn");
     }
     else 
     {
     printf("red is onn");
     }
     }
     scanf("%c",&green);
     {
     if (green=='c')
     {
     printf("green is onn");
     }
     else 
     {
     printf("yellow is onn");
     }

     }
}



          
Comments: