Back to slide -- Keyboard shortcut: 'u'                      conversions/io-stream-1.cc - The while loop in the context of a full C++ program.Lecture 4 - slide 22 : 41
Program 1

#include <iostream>
#include <string>

using namespace std;

int main(){
  int i;
  while (cin >> i)   // convert istream to bool or int
     cout << i*2 << " " << endl;
  cout << "DONE";
}