Computer Science, asked by fk336733, 4 months ago

#include
using namespace std;
main()
{
1+rand()%6;
int a[100];
int i,z,found=0;
for(i=0;i<100;i++)
{
a[i]=1+rand()%6;}
cout<<"please enter any number to roll the dice :";
cin>>z;
for(i=0;i<100;i++ )
{
if(z==a[i])
{found=1;
break;
}
}
if (found==1)
{ cout<<"here is your luck:";
}
else
{cout<<"invalid number";
}
}
when run the compiler it says: cout was not declare in this scope at line 11....
help me to find the mistake

Answers

Answered by agarwalcharu96
1

Answer:

firstly declare the data type of cout

Similar questions