#include using namespace std;
int main(){ int n = 0;
while( true ){ cin >> n; if( n!= 42) cout << n << endl; else break; }
}
#include expected directory <> You didn’t include any directories but still write #include.
Solution:
#include < iostream >
you’re supposed to output 42 before exiting.
yes, thankyou. There was another question where 42 wasn’t to be printed. So I was copying the same code.