#include #include using namespace std; int main() { int a[] { 31, // 0 January 28, // 1 February 31, // 2 March 30, // 3 April 31, // 4 May 30, // 5 June 31, // 6 July 31, // 7 August 30, // 8 September 31, // 9 October 30, //10 November 31 //11 December }; int n {size(a)}; //the number of elements in the array int sum {0}; for (int i {0}; i < n; ++i) { sum += a[i]; //means sum = sum + a[i] } cout << "The number of days in a (non-leap) year is " << sum << ".\n"; return EXIT_SUCCESS; }