+ 1
help me to find error
#include <iostream> #include<conio.h> using namespace std; int main(int) { int vote,max,v1,v2,v3,v4,v5; cout ("enter any no. :"); cin<<v1<<v2<<v3<<v4<<v5; vote=v1+v2+v3+v4+v5; max=500; if (vote => max) { cout << "Yes"; } return 0; getch(); }
2 ответов
+ 3
There are errors in lines 5,8,9,12 and 20.
https://code.sololearn.com/chw6QQAjU4sb/?ref=app
P.S. Always try to insert code.
0
#include <iostream>
//#include<conio.h> see here
using namespace std;
int main(int)
{
int vote,max,v1,v2,v3,v4,v5;
cout<<"enter any no. :";//see here
cin>>v1>>v2>>v3>>v4>>v5;//see here
vote=v1+v2+v3+v4+v5;
max=500;
if (vote >= max) {//see here
cout << "Yes";
}
return 0;
//getch(); see here
}