!
# include
# include
using namespace std;
Int main () {int a=0;
Srand (time (0));
for(int i=0; i<900; I++) {
Int n=rand () % 101;
If (n=1)
+;
cout
CodePudding user response:
Write an equal sign, lessif (n=1)
Change
if (n==1)
CodePudding user response:
# include
# include
using namespace std;
Int main ()
{
Int a=0;
Int n=0;
Srand (time (0));
for(int i=0; i<900; I++)
{
Int n=rand () % 101;
If (n==1)
+;
cout}
coutreturn 0;
}
CodePudding user response:
Want to use the==, c is this is not good, easy to make mistakes,