what the error in this program?

#include<iostream.h>
#include<conio.h>
float q1,q2,q3,q ave,km,miles,reg,des,discount,z;
int b,c;
char fn[10],ln[10],sn[10],mn[15];
main()
{
clrscr();
goto(45,15);
cout<<"choose a program no.:";
cin>>b;
switch(b)
case(1):
cout<<"input distance in kilometers:"<<endl;
cin>>km;
miles=km/8*5;
cout<<"the equivalent miles is:"<<miles<<endl; break;
case(2):
cout<<"Enter regular amount:"<<endl;
cin>>reg;
cout<<"Enter desirable discount:"<<endl;
cin>>des;
discount=reg*(des/100);
cout<<"discount is:"<<discount<<endl;
z=reg-discount;
cout<<"the total amount you will pay is:"<<z<<endl; break;
case(3)
cout<<"input the score of three quizzes:"<<endl;
cin>>q1>>q2>>q3;
q ave=(q1+q2+q3)/3;
cout<<q ave<<" "<<"is your quiz average"<<endl;
if(q ave>=75)
cout(<q ave<<" "<<"is passing."<<endl;
else
cout<<q ave<<" "<<"is failing."<<endl; break;
case(4):
cout<<"input a number:"<<endl;
cin>>c;
if(c%2==0)
cout<<c<<" "<<"is a even number."<<endl;
else if(c%2>0)
cout<<c<<" "<<"is a odd number."<<endl; break;
case(5):
cout<<"enter first name:"<<endl;
cin>>fn;
cout<<"enter second name:"<<endl;
cin>>sn;
cout<<"enter middle name:"<<endl;
cin<<mn;
cout<<"enter last name:"<<endl;
cin>>ln;
cout<<"Your full name is:"<<fn<<" "<<sn<<" "<<mn<<" "<<ln<<endl; break;
default: cout<<"You have not choose a program."<<endl; break;
}
getch();
}

and how to use goto statement in postioning the output on the black screen
Firstly, next time you post your code use the [code] format, it makes it easier to read and give feedback.

Errors I can see:
Your switch statement has no open brace
Add spaces after statements e.g. cout<<"Equivilent: "
Case 3 has no ':' colon
if in case 3 has no open brace '{'
cout in case 3 'cout(<'
if in case 4 has no open brace '{'

Theres probably more but you obviously haven't tried to debug this yourself so I won't bother with the rest.
Topic archived. No new replies allowed.