#include<iostream>
#include<cstring>
usingnamespace std;
int main()
{
char exit;
int m;
double am;
char name[20];
int x;
do
{
cout<<"Enter number of new members:";
cin>>m;
cout<<"Enter the card type:";
cin>>name;
cout<<"Enter the Bill amount(Rs.):";
cin>>am;
if((m<=3)&&(m>=1)&&(name=="Gold"))
{
x=am-(am*0.18);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m<=3)&&(m>=1)&&(name=="Silver"))
{
x=am-(am*0.15);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m<=3)&&(m>=1)&&(name=="Bronze"))
{
x=am-(am*0.10);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m<=10)&&(m>=4)&&(name=="Gold"))
{
x=am-(am*0.22);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m<=10)&&(m>=4)&&(name=="Silver"))
{
x=am-(am*0.17);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m<=10)&&(m>=4)&&(name=="Bronze"))
{
x=am-(am*0.12);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m>10)&&(name=="Gold"))
{
x=am-(am*0.30);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m>10)&&(name=="Silver"))
{
x=am-(am*0.20);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m>10)&&(name=="Bronze"))
{
x=am-(am*0.18);
cout<<"Amount need to be Paid(Rs.): "<<x<<endl;
}
if((m<1)&&((name=="Gold")||(name=="Silver")||(name=="Bronce")))
{
cout<<"Amount need to be Paid(Rs.): "<<am<<endl;
}
cout<<"Do you need to continue ?";
cin>>exit;
if((exit=='n')||(exit=='N'))
break;
}
while((exit=='y')||(exit=='Y'));
return 0;
}
If you make name a string instead of a character array, you could use ==.
I might suggest having the user enter 1,2 or 3 or (G, S or B) to represent the actual choices of Gold, Silver or Bronze. Check that they've entered a valid choice. Otherwise, you're relying on them to spell the name exactly as you have it. (and check line 69 - you have a typo on bronze)