#include int main(void) { int array[10] = {1,2,3,4,5,6,7,8,9,0}; int n = 0; while (array[n]) { std::cout << array[n] << std::endl; n++; } return 0; }