Rewrite the following C++ code after removing any/all syntactical errors with each correction underlined.
Note: Assume all required header files are already being included in the program.
void main()
{
cout<<'Enter an integer”;
cin>>N;
switch(N%2)
case 0 cout<<'Even'; Break;
case 1 cout<<'Odd'; Break;
}
void main()
{
int N;
cout<<'Enter an integer';
cin>>N;
switch(N%2)
{
case 0 :
cout<<'Even'; break;
case 1 :
cout<<'Odd' ; break;
}
Each correction is bold and underlined.