#include <iostream>
using namespace std;
int main()
{
int counter=0;
int massiv[10];
for (int i = 0;i<10;i++)
cin >> massiv[i];
if(massiv[i] == 0)
counter++;
}
cout<<counter;
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main()
{
int counter=0;
int massiv[10];
for (int i = 0;i<10;i++)
{
cin >> massiv[i];
if(massiv[i] == 0)
counter++;
}
cout<<counter;
return 0;
}