Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- void main()
- {
- system("cls");
- setlocale(LC_ALL,"Rus");
- int d[12], el=0;
- for (int i=0; i<12; i++)
- {
- cout<<"Введите d["<<i<<"]=";
- cin>>d[i];
- }
- cout<<"\nВведеный массив: ";
- for (int i=0; i<12; i++)
- {
- cout<<" "<<d[i];
- if (i%2==0 && d[i]%3==0)
- {
- el++;
- cout<<"< ";
- }
- }
- cout<<"\nКоличество элементов: "<<el<<endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement