#include <iostream>
using namespace std;
int main()
{
int i, number;
for(i=1; i<=5; i++)
{
cout<<"Enter a number: "<<endl;
cin>>number;
{
if(number==1 || number<=30)
cout<<'*'<<endl;
number++;
}
}
return 0;
}
The problem here is that the asterisk is displaying only 1 when it should be displaying according to the numbers input and according to the statement. PLEASE HELP!

New Topic/Question
Reply



MultiQuote






|