Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. setlocale(LC_ALL, "Rus");
  8. double A[15];
  9. int summa;
  10. int chet;
  11. for(int i = 0; i<15; i++)
  12. {
  13. cin>> A[];
  14. }
  15. for(int i = 0;i<15;i++)
  16. {
  17. if(A[i]==round(А[i]))
  18. {
  19. summa=+A[i];
  20. chet++;
  21. }
  22. }
  23. cout<< summa<<endl<<chet<<endl;
  24. system("pause");
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement