Contact: aviboots(AT)netvision.net.il
39,939 questions
51,876 answers
573 users
#include <iostream> int main() { int n = 0; std::cout << "Enter numbers, 42 to exit:\n"; std::cin >> n; while (n != 42) { std::cout << n << "\n"; std::cin >> n; } } /* run: Enter numbers, 42 to exit: 3 3 8 8 0 0 345 345 90923 90923 42 */