Powered by Blogger.

Translate

Tuesday, June 26, 2012

Home » » c++

c++

#include<stdio.h>
#include<conio.h>
main()
{
  char choice;
  printf("Enter your choice[a-z]:");
  choice=getchar();
  switch(choice)
  {
                case'r':
                        printf("Red");
                        break;
                case'w':
                        printf("White");
                        break;
                case'b':
                        printf("Blue");
                        break;
                       
                 case's':
                        printf("\n\n\n\t\t\tSabnam & Shyam");
                        break;
                              
                        default:
                        printf("unknown");
                        }
                       
                        }
                            
                                              
                       
 
 
 
 
 
Share this games :

0 comments:

Post a Comment