call of Duty kye gen

 
Turbo C - Movie House Calculator

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

/* Programmed by Harvey Losin */
/* http://www.bikoy.com/harvey */
/* webmaster@bikoy.com */

main()
{
int a;
char d,p;
const DeLuxe=40,Premeire=60;
clrscr();
printf("nntDeLuxe=P=40");
printf("nntPremeire=P=60");
printf("nWhat place in the moviehouse would you prefer to watch? <d/p>: ");
d=getche();
d=toupper(d);


if(d=='D')
{
printf("nHow many of you are going to watch?");
scanf("%d", &a);
printf("nnThe amount your going to pay is =P= %d",DeLuxe*a);
}
else if(d=='P')
{
printf("nHow many of you are going to watch?");
scanf("%d", &a);
printf("nnThe amount your going to pay is =P= %d",Premeire*a);
}
else
{
printf("nnThe letter you press is wrong");
}
getch();
}

Site Meter

webweaving by harvey
copyright 2002-2004 bikoy83. all rights reserved.