It seems to be a conditional statement, but with no "if".
Is there a "longhand" method that is identical.
1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream>
usingnamespace std;
int main() {
// Input and loop defined, only adds if input is correct.
for (shortint i=8, input; i <= 23; i+=(i == input) ) {
cout << "Enter the number " << i << ": ";
cin >> input;
}
return(0);
}