ho corretto ma io voglio che se metto 5 esce ma non lo fa
codice:
#include <iostream>

using namespace std;

int main()
{
	int i,a,r3,r5,r7,b3,b5,b7,max;
	char b = 'b',n;
	max=100;
	for (i = 1; i = max; a++)
{
	cin>>n;
	cout<<endl;
	r3=n%3;
	r5=n%5;
	r7=n%7;
	if(r3==0)
	b3=b;
	if(r5==0)
	b5=b;
	if(r7==0)
	b7=b;
	if(b3==b || b5==b || b7==b)
	a=b;
	else
	a=i;
	if(a=n)
	cout<<endl;
	else
	return 0;
	cin.get();
}
	cin.get();
}