
-----------------------------------
lindsay
Fri Oct 19, 2007 8:49 am

windows says there is an ERROR!?
-----------------------------------
I wrote a program and when a execute it, windows says there is an error and finishs the program then asks if I want to report that error. I cannot figure out what's wrong. I'll appreciate your help. My program is as follows:


#include
#include
int main()
{
double hour;
char type;
printf("enter the type of your vehicle : for motorcyle m,for outomobile o");
scanf("%c",&type);
  if(type=='m')
  {
               
                 printf("enter the hour:");
                 scanf("%f",&hour);
                 if(hour>0 && hour3 && hour0 && hour3 && hour0 && hour3 && hour0 && hour3 && hour