Computer Science, asked by tjsinghchawlaoxpw9v, 5 months ago

I am getting an error in this program(C++) PLease help me find my mistake(that is the question) :
lvalue required as left operand of assignment
in the line:
while(c || answer=y);
PLease help!!!
#include
#include
using namespace std;


int main(){
string name;
int a[5],y,answer,score,c,tab,z;
cout > name;
cout 0 && tab > tab;
}
cout > z ;
for (int x = z ;x>0; x--)
{
a[x]= rand()%10;
cout > answer;
if (answer=y){
score= score+1;
do{
c=c+1;

if(answer>y){
cout<< name << " your answer is too large" << endl;
if (answer cout< }
}
} while(c || answer=y);
cout<
}
cout<< score< if (score=5){
cout<< "well done " << name< }
else{cout<< "better luck next time"< }

}

}

Answers

Answered by seherwani36
1

Answer:

arey yrr itna bada bhi koi error hota h kya, i can't give u the ans sorryy ❣❣⚛⚛

Similar questions