Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  a
Language: C/C++
Code:
#include <stdio.h>
#include <string.h>
#include <conio.h>
int main()
{
system("cls");

printf("Enter a letter\n");
    char var = getch();
   //  printf("\nInput Char Is: %c\n",var)

    switch(var)
    {
        case 'a': puts("You typed an \"a!\""); break;
        case 'b': puts("You typed a \"b!\""); break;
        case 'c': puts("You typed a \"c!\""); break;
        default: puts("\nTry again"); break;
    }
    getch();
    main();
    return(0);
}
Comments: