car secletcing using switch

Started by aruljothi, Mar 31, 2009, 11:16 AM

Previous topic - Next topic

aruljothi

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int car,add,mul,show,again,mx,my,x,y;
   {

   /*{ */
   int driver,mode;
   driver=DETECT;
   initgraph(&driver,&mode," ");
       /*   mx=getmaxx();
   my=getmaxy();
    /*x=getmaxx()/2;
    y=getmaxy()/2;
       /*}*/
   }
printf("   ************ Enter the my CAR program
************a
a

   ");

/*bond=bond+rajesh;*/
printf("The select one of the below aptinons are the carnaa


");
printf("1. adding:           3.show result   

");
printf("2. Multiplay:        4.continuew again


a");

     scanf("%d",&car);
switch(car)
   {
   case 1:
   printf("this is your number for adding");
   scanf("the vale%d",car);
   break;
    case 2:
    clrscr();
    printf("thsi company maruthi car");
    setcolor(15);
    rectangle(100,5550,5550,100);
    setcolor(8);
         getch();

    break;
    case 3:
    printf("no this is my brother car");
    break;
    case 4:
    printf("not a valid stement");
    break;

    }

}