// Example use of a continue statement
#include <iostream>
using namespace std;

int main()
{

  float sum=0., x;
  int count=0;

  for (int i=1; i<=10; i++) {
    cout << "input number " << i << " :";
    cin >> x;
    if( x==0 ) continue; // jump to the top of the block
    count++;
    sum += x;
  }

  cout << count << " non-zero values were input." << endl;
  cout << "Their mean is " << sum/count << endl;

}
