Find the errors
A) #include
using namespace std;
main
{
double number, half;
cout << "Enter a number and I will divide it\n"
cout << "in half for you.\n"
cin >> number1;
half =/ 2;
}
B) #include
using namespace std;
int main()
{
char name, go;
cout << "Enter your name: ";
cin.width(20);
cin.getline >> name;
cout << "Hi " << name << endl;
cout "Press the ENTER key to end this program.";
cin >> go;
return 0;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.