Author Topic: C++ program that i made for people who know how to use C++  (Read 594 times)

T-Max

  • Noob
  • *
  • Posts: 18
  • Reputation: 2
  • Computers: I do not own any computers, I mainly use the Family Computer however.
C++ program that i made for people who know how to use C++
« on: December 30, 2011, 09:12:50 am »
allright i made a C++ program.. the very first 1 in fact that i actually made on my own and now i want to share it and see if you guys like it or not so please tell me if you changed it and it turned out better or not and show off what you did to my program.... Thanks for your time!!

#include <stdio.h>
#include <conio.h>

int main(void)
{
    int number;
    scanf("%d", &number);
    switch(number){
    case 2:
    printf("You Entered the Number 2");
    break;
    case 4:
    printf("You Entered the Number 4");
    break;
    case 6:
    printf("You Entered the Number 6");
    break;
    default:
    printf("I have absolutely no idea what you entered sir/ma'am");
    break;       
}               
   
   
    getch();
}
I'm not a big forum person here... I do some posting here and there but I mainly read, You won't see much of me around here.