Answers

2014-06-16T22:46:56+05:30
#include <iostream> using namespace std; const int N=10; int main() { int t[10],i,nb=0; for(i=0;i<N;i++) { cout << "Type an integer: "; cin >> t[i]; nb+= (t[i]>=10); // note that true converts to 1, false to 0 } cout << "the number of integers greater or equal to 10 is: " << nb <<endl; return 0; }

0