File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -115,19 +115,21 @@ int main()
115
115
cout << "There are not two adjacent elements that are equal."
116
116
<< endl;
117
117
else
118
- cout << "There are two adjacent elements that are equal."
119
- << "\n They have a value of "
120
- << *( result1 ) << "." << endl;
118
+ cout << "There are two adjacent elements that are equal.\n "
119
+ << "They have a value of "
120
+ << *( result1 ) << "." << endl;
121
121
122
122
result2 = adjacent_find( L.begin( ), L.end( ), twice );
123
123
if ( result2 == L.end( ) )
124
124
cout << "There are not two adjacent elements where the "
125
- << " second is twice the first." << endl;
125
+ << "second is twice the first." << endl;
126
126
else
127
+ {
127
128
cout << "There are two adjacent elements where "
128
- << "the second is twice the first."
129
- << "\n They have values of " << *(result2++);
130
- cout << " & " << *result2 << "." << endl;
129
+ << "the second is twice the first.\n"
130
+ << "They have values of " << *(result2++)
131
+ << " & " << *result2 << "." << endl;
132
+ }
131
133
}
132
134
```
133
135
You can’t perform that action at this time.
0 commit comments