Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Rus");
- double A[15];
- int summa;
- int chet;
- for(int i = 0; i<15; i++)
- {
- cin>> A[];
- }
- for(int i = 0;i<15;i++)
- {
- if(A[i]==round(А[i]))
- {
- summa=+A[i];
- chet++;
- }
- }
- cout<< summa<<endl<<chet<<endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement